Skip to content

Commit

Permalink
dev build as well as expo go
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Dec 18, 2024
1 parent 19cb332 commit 522802c
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 29 deletions.
8 changes: 7 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"package": "com.expotest.statusbar"
},
"web": {
"bundler": "metro",
Expand All @@ -36,6 +37,11 @@
],
"experiments": {
"typedRoutes": true
},
"extra": {
"router": {
"origin": false
}
}
}
}
25 changes: 1 addition & 24 deletions app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
import { Stack } from "expo-router";
import { Platform, StyleSheet } from "react-native";

export default function RootLayout() {
return (
<Stack
screenOptions={{
headerShown: false,
navigationBarColor: "transparent",
statusBarBackgroundColor:
Platform.OS === "android" ? "transparent" : undefined,
statusBarStyle: "dark",
statusBarTranslucent: true,
contentStyle: styles.contentStyle,
}}
/>
);
return <Stack screenOptions={{ statusBarTranslucent: true }} />;
}

const styles = StyleSheet.create({
statusbarIndexScreen: {
// Match the color of the image at the top of the screen
color: "#e1d1b9",
},
contentStyle: {
backgroundColor: "#fff9ed",
},
});
99 changes: 97 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"ios": "expo start --ios",
"web": "expo start --web",
"test": "jest --watchAll",
"lint": "expo lint"
"lint": "expo lint",
"android:local:dev": "eas build --profile development --platform android --local && expo start"
},
"jest": {
"preset": "jest-expo"
Expand Down Expand Up @@ -38,7 +39,8 @@
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "~4.1.0",
"react-native-web": "~0.19.13",
"react-native-webview": "13.12.5"
"react-native-webview": "13.12.5",
"expo-dev-client": "~5.0.6"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand Down

0 comments on commit 522802c

Please sign in to comment.