@react-native-community/template 0.81.0-rc.1-de2aaa4 → 0.81.0-rc.3-96e4c49

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-community/template",
3
- "version": "0.81.0-rc.1-de2aaa4",
3
+ "version": "0.81.0-rc.3-96e4c49",
4
4
  "description": "The template used by `npx @react-native-community/cli init` to bootstrap a React Native application.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "scripts": {
10
10
  "test": "jest",
11
- "version": "0.81.0-rc.1"
11
+ "version": "0.81.0-rc.3"
12
12
  },
13
13
  "type": "commonjs",
14
14
  "files": [
package/template/App.tsx CHANGED
@@ -7,23 +7,31 @@
7
7
 
8
8
  import { NewAppScreen } from '@react-native/new-app-screen';
9
9
  import { StatusBar, StyleSheet, useColorScheme, View } from 'react-native';
10
+ import {
11
+ SafeAreaProvider,
12
+ useSafeAreaInsets,
13
+ } from 'react-native-safe-area-context';
10
14
 
11
15
  function App() {
12
16
  const isDarkMode = useColorScheme() === 'dark';
13
17
 
14
18
  return (
15
- <>
19
+ <SafeAreaProvider>
16
20
  <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
17
21
  <AppContent />
18
- </>
22
+ </SafeAreaProvider>
19
23
  );
20
24
  }
21
25
 
22
26
  function AppContent() {
23
- // TODO(huntie): Restore safeAreaInsets assignment (see #153)
27
+ const safeAreaInsets = useSafeAreaInsets();
28
+
24
29
  return (
25
30
  <View style={styles.container}>
26
- <NewAppScreen templateFileName="App.tsx" />
31
+ <NewAppScreen
32
+ templateFileName="App.tsx"
33
+ safeAreaInsets={safeAreaInsets}
34
+ />
27
35
  </View>
28
36
  );
29
37
  }
@@ -11,20 +11,21 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "19.1.0",
14
- "react-native": "0.81.0-rc.1",
15
- "@react-native/new-app-screen": "0.81.0-rc.1"
14
+ "react-native": "0.81.0-rc.3",
15
+ "@react-native/new-app-screen": "0.81.0-rc.3",
16
+ "react-native-safe-area-context": "^5.5.2"
16
17
  },
17
18
  "devDependencies": {
18
19
  "@babel/core": "^7.25.2",
19
20
  "@babel/preset-env": "^7.25.3",
20
21
  "@babel/runtime": "^7.25.0",
21
- "@react-native-community/cli": "20.0.0-alpha.0",
22
- "@react-native-community/cli-platform-android": "20.0.0-alpha.0",
23
- "@react-native-community/cli-platform-ios": "20.0.0-alpha.0",
24
- "@react-native/babel-preset": "0.81.0-rc.1",
25
- "@react-native/eslint-config": "0.81.0-rc.1",
26
- "@react-native/metro-config": "0.81.0-rc.1",
27
- "@react-native/typescript-config": "0.81.0-rc.1",
22
+ "@react-native-community/cli": "20.0.0-alpha.2",
23
+ "@react-native-community/cli-platform-android": "20.0.0-alpha.2",
24
+ "@react-native-community/cli-platform-ios": "20.0.0-alpha.2",
25
+ "@react-native/babel-preset": "0.81.0-rc.3",
26
+ "@react-native/eslint-config": "0.81.0-rc.3",
27
+ "@react-native/metro-config": "0.81.0-rc.3",
28
+ "@react-native/typescript-config": "0.81.0-rc.3",
28
29
  "@types/jest": "^29.5.13",
29
30
  "@types/react": "^19.1.0",
30
31
  "@types/react-test-renderer": "^19.1.0",