BEGINNER • Mobile Foundations
Feature Lab for booking platform #4
This lesson focuses on optimize battery usage for a booking platform app. Commands: expo start | xcrun simctl | npm run android.
Code Example
import { View, Text, StyleSheet } from "react-native";
export default function Screen() {
return (
<View style={styles.container}>
<Text style={styles.title}>booking platform</Text>
<Text>Objective: optimize battery usage</Text>
</View>
);
}
const styles = StyleSheet.create({
container: { flex: 1, padding: 16 },
title: { fontSize: 18, fontWeight: "600" },
});
// Run: expo startCommands & References
- expo start
- xcrun simctl
- npm run android
Lab Steps
- Run expo start
- Implement feature
- Test on device
- Document findings
Exercises
- Add one validation
- Improve one UX flow
- Write one test