expo-template-tabs 49.0.2 → 49.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/app/+html.tsx +12 -0
  2. package/app.json +1 -12
  3. package/package.json +4 -4
package/app/+html.tsx CHANGED
@@ -26,9 +26,21 @@ export default function Root({ children }: { children: React.ReactNode }) {
26
26
  */}
27
27
  <ScrollViewStyleReset />
28
28
 
29
+ {/* Using raw CSS styles as an escape-hatch to ensure the background color never flickers in dark-mode. */}
30
+ <style dangerouslySetInnerHTML={{ __html: responsiveBackground }} />
29
31
  {/* Add any additional <head> elements that you want globally available on web... */}
30
32
  </head>
31
33
  <body>{children}</body>
32
34
  </html>
33
35
  );
34
36
  }
37
+
38
+ const responsiveBackground = `
39
+ body {
40
+ background-color: #fff;
41
+ }
42
+ @media (prefers-color-scheme: dark) {
43
+ body {
44
+ background-color: #000;
45
+ }
46
+ }`;
package/app.json CHANGED
@@ -27,18 +27,7 @@
27
27
  "output": "static",
28
28
  "favicon": "./assets/images/favicon.png"
29
29
  },
30
- "plugins": [
31
- [
32
- "expo-router",
33
- {
34
- "origin": false,
35
- "asyncRoutes": {
36
- "default": "development",
37
- "android": false
38
- }
39
- }
40
- ]
41
- ],
30
+ "plugins": ["expo-router"],
42
31
  "experiments": {
43
32
  "tsconfigPaths": true,
44
33
  "typedRoutes": true
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "expo-template-tabs",
3
3
  "main": "expo-router/entry",
4
4
  "description": "The Tab Navigation project template includes several example screens.",
5
- "version": "49.0.2",
5
+ "version": "49.0.4",
6
6
  "scripts": {
7
7
  "start": "expo start",
8
8
  "android": "expo start --android",
@@ -16,14 +16,14 @@
16
16
  "dependencies": {
17
17
  "@expo/vector-icons": "^13.0.0",
18
18
  "@react-navigation/native": "^6.0.2",
19
- "expo": "~49.0.0-alpha.6",
19
+ "expo": "~49.0.0-alpha.8",
20
20
  "expo-font": "~11.4.0",
21
21
  "expo-linking": "~5.0.1",
22
+ "expo-router": "^2.0.0-rc.4",
22
23
  "expo-splash-screen": "~0.20.0",
23
24
  "expo-status-bar": "~1.6.0",
24
25
  "expo-system-ui": "~2.4.0",
25
26
  "expo-web-browser": "~12.3.0",
26
- "expo-router": "^2.0.0-rc.1",
27
27
  "react": "18.2.0",
28
28
  "react-dom": "18.2.0",
29
29
  "react-native": "0.72.0",
@@ -35,7 +35,7 @@
35
35
  "@babel/core": "^7.20.0",
36
36
  "@types/react": "~18.0.14",
37
37
  "jest": "^29.2.1",
38
- "jest-expo": "~48.0.0",
38
+ "jest-expo": "~49.0.0-alpha.4",
39
39
  "react-test-renderer": "18.2.0",
40
40
  "typescript": "^4.9.4"
41
41
  },