Package for in-app update your app
Android update use native SDK for in-app update.
npm install @khorark/rn-in-app-update --save
cd ios && pod install
Use hook for check update
import { useInAppUpdate } from '@khorark/rn-in-app-update';
// ...
const App = () => {
useInAppUpdate();
return <MainComponent />;
};
Use func for check update
// ...
import { checkUpdate } from '@khorark/rn-in-app-update';
// ...
const App = () => {
return <Pressable onPress={checkUpdate}>/* ... */ </Pressable>;
};
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library