Skip to content

Commit 316487b

Browse files
committed
mobile: add Expo RN scaffold and enable apps workspace
1 parent 5f6057b commit 316487b

4 files changed

Lines changed: 77 additions & 1 deletion

File tree

apps/mobile/App.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { StatusBar } from 'expo-status-bar';
2+
import { StyleSheet, Text, View } from 'react-native';
3+
4+
export default function App() {
5+
return (
6+
<View style={styles.container}>
7+
<Text>Planner Mobile — Today, Quick Capture, Timers (scaffold)</Text>
8+
<StatusBar style="light" />
9+
</View>
10+
);
11+
}
12+
13+
const styles = StyleSheet.create({
14+
container: {
15+
flex: 1,
16+
backgroundColor: '#0b0b0b',
17+
alignItems: 'center',
18+
justifyContent: 'center',
19+
},
20+
});
21+
22+

apps/mobile/app.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"expo": {
3+
"name": "Planner Mobile",
4+
"slug": "planner-mobile",
5+
"version": "0.0.1",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"splash": {
9+
"image": "./assets/splash.png",
10+
"resizeMode": "contain",
11+
"backgroundColor": "#0b0b0b"
12+
},
13+
"updates": {
14+
"fallbackToCacheTimeout": 0
15+
},
16+
"assetBundlePatterns": [
17+
"**/*"
18+
],
19+
"ios": {
20+
"supportsTablet": true
21+
},
22+
"android": {
23+
"adaptiveIcon": {
24+
"foregroundImage": "./assets/adaptive-icon.png",
25+
"backgroundColor": "#0b0b0b"
26+
}
27+
},
28+
"web": {
29+
"favicon": "./assets/favicon.png"
30+
}
31+
}
32+
}
33+
34+

apps/mobile/package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "planner-mobile",
3+
"private": true,
4+
"version": "0.0.1",
5+
"main": "App.js",
6+
"scripts": {
7+
"start": "expo start",
8+
"android": "expo run:android",
9+
"ios": "expo run:ios",
10+
"web": "expo start --web"
11+
},
12+
"dependencies": {
13+
"expo": "~51.0.17",
14+
"react": "18.2.0",
15+
"react-native": "0.74.3",
16+
"expo-status-bar": "~1.12.1"
17+
}
18+
}
19+
20+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "planner",
33
"private": true,
4-
"workspaces": ["."],
4+
"workspaces": [".", "apps/*"],
55
"version": "0.1.0",
66
"type": "module",
77
"scripts": {

0 commit comments

Comments
 (0)