How can I kill app programatically.

I tried BackHandler.exitApp(); functions from react-native. but It does not kill the process completely.

I don’t think there’s anything in stock RN/ Expo to do this. You could detach to ExpoKit and add react-native-exit-app (GitHub - wumke/react-native-exit-app: Exit,close,kill,shutdown app completely for React Native on iOS and Android.). Note that there’s some debate in the issues as to whether programmatically exiting an iOS app would cause your app to fail review.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.