react-native-fast-restart
v0.4.0
Published
Support for restart app
Readme
react-native-fast-restart
Support for restart app
Installation
npm install react-native-fast-restartUsage
import { Button, StyleSheet, View } from 'react-native';
import { restartApp } from 'react-native-fast-restart';
export default function App() {
return (
<View style={styles.container}>
<Button
title="Restart"
onPress={() => {
console.log('restartApp?.()', restartApp?.());
restartApp?.();
}}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});
