Notify users a new version of application is available and prompt them to upgrade.
npm install react-native-neo-version
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',
});
- 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.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT