Skip to content

Commit 0491d27

Browse files
committed
Refactor app structure: remove old App component, add Main component with navigation and safe area support, and include react-native-webview dependency
1 parent 3c91a97 commit 0491d27

File tree

4 files changed

+19
-32
lines changed

4 files changed

+19
-32
lines changed

example/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"react-native-gesture-handler": "^2.20.1",
2020
"react-native-safe-area-context": "^4.11.1",
2121
"react-native-screens": "^3.34.0",
22-
"react-native-vector-icons": "^10.2.0"
22+
"react-native-vector-icons": "^10.2.0",
23+
"react-native-webview": "^13.12.3"
2324
},
2425
"devDependencies": {
2526
"@babel/core": "^7.20.0",

example/src/App.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

example/src/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/src/index.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { NavigationContainer } from '@react-navigation/native';
2+
import { SafeAreaProvider } from 'react-native-safe-area-context';
3+
4+
import App from './components/App';
5+
import { IterableAppProvider } from './hooks';
6+
7+
export default function Main() {
8+
return (
9+
<SafeAreaProvider>
10+
<NavigationContainer>
11+
<IterableAppProvider>
12+
<App />
13+
</IterableAppProvider>
14+
</NavigationContainer>
15+
</SafeAreaProvider>
16+
);
17+
}

0 commit comments

Comments
 (0)