react_native/news_app/app/index.js

18 lines
484 B
JavaScript

import { KeyboardAvoidingView, SafeAreaView, View} from "react-native";
import { NavigationContainer } from '@react-navigation/native';
import HomeNavigator from './Navigation/HomeNavigator'
export default function Index() {
return (
<NavigationContainer independent={true}>
<KeyboardAvoidingView>
<View style={{height: '100%', width: '100%'}}>
<HomeNavigator/>
</View>
</KeyboardAvoidingView>
</NavigationContainer>
);
}