@uplift-ltd/react-native-updates
v4.0.0
Published
react-native-updates
Downloads
2
Readme
@uplift-ltd/react-native-updates
Installation
npm i --save @uplift-ltd/react-native-updates
API
useExpoUpdates
Use this hook to let users load the latest OTA updates.
import { useExpoUpdates } from "@uplift-ltd/react-native-updates";
function MyComponent() {
const { canUpdate, updateLoading, updateReady, reloadAsync } = useExpoUpdates();
return (
<>
{updateReady && <Button onPress={reloadAsync}>Update available! Tap to reload.</Button>}
<App />
</>
);
}