File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
website/static/examples/next Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import { Text , View } from 'react-native' ;
2
+ import { Text } from 'react-native' ;
3
3
import { NavigationNativeContainer } from '@react-navigation/native' ;
4
4
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs' ;
5
5
import { createStackNavigator } from '@react-navigation/stack' ;
6
- import { SafeAreaProvider } from 'react-native-safe-area-context' ;
7
- import SafeAreaView from 'react-native-safe-area-view' ;
6
+ import { SafeAreaProvider , SafeAreaView } from 'react-native-safe-area-context' ;
8
7
9
8
function Demo ( ) {
10
9
return (
@@ -27,10 +26,7 @@ export default function App() {
27
26
< Stack . Navigator initialRouteName = "Home" headerMode = "none" >
28
27
< Stack . Screen name = "Home" >
29
28
{ ( ) => (
30
- < Tab . Navigator
31
- initialRouteName = "Analitics"
32
- tabBar = { ( ) => null }
33
- >
29
+ < Tab . Navigator initialRouteName = "Analitics" tabBar = { ( ) => null } >
34
30
< Tab . Screen name = "Analitics" component = { Demo } />
35
31
< Tab . Screen name = "Profile" component = { Demo } />
36
32
</ Tab . Navigator >
You can’t perform that action at this time.
0 commit comments