react-native-neo-version
v0.3.1
Published
Check the version for react native applications
Downloads
7
Readme
react-native-neo-version
Notify users a new version of application is available and prompt them to upgrade.
Installation
npm install react-native-neo-version
Usage
import { useNeoVersionCheck } from 'react-native-neo-version';
// ...
export default function App() {
useNeoVersionCheck();
return (
<View style={styles.container}>
<Text>React Native Neo Version</Text>
</View>
);
}
You can change the behaviour by setting configuration
import { useNeoVersionCheck } from 'react-native-neo-version';
// ...
useNeoVersionCheck({
frequency: 20,
alertType: 'force',
title: 'alert title',
message: 'alert meessage',
});
Screenshots
iOS
- The first picture forces the user to update the app.
- The second picture gives the user the option to update the app.
- The third picture gives the user the option to skip the current update.
Android
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT