react-native-basic-app
v0.1.4
Published
Bacis App with container and reusable context providers
Readme
react-native-basic-app
Basic App with container and reusable context providers
Other Dependency
npm install react-native-vector-iconsInstallation
npm install react-native-basic-appUsage
import {
Container,
ShowMenuContext,
AlertContext,
} from 'react-native-basic-screen';
// ...
return (
<ShowMenuContext.Provider
value={{
shouldShowMenu,
setShouldShowMenu,
}}
>
<AlertContext.Provider
value={{
setAlertMessage,
setShouldShowAlert,
shouldShowAlert,
alertMessage: 'Hello im alert',
}}
>
<View style={styles.container}>
<Container
showBackButton
narrowMode
headerTitle={'Home'}
children={
<Text>
Im a child and im so happy to be rendered by a container.
</Text>
}
/>
</View>
</AlertContext.Provider>
</ShowMenuContext.Provider>Customization Properties

Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
