Backhandler works on EXPO but not on APK

#1

I am creating a react-native app using expo

Backhandler works well in EXPO, but does not work in built APK.

Works well published apps inside the expo and with the expo start

If create an APK using expo build:android , the Backhandler will not work and the app will shut down immediately.

I create a tabnavigator named HOME and put the HOME in the MAIN STACK

"dependencies": {
    "expo": "^30.0.0",
    "firebase": "^5.5.2",
    "prop-types": "^15.6.2",
    "react": "16.3.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz",
    "react-native-app-intro-slider": "^1.0.1",
    "react-native-elements": "^1.0.0-beta5",
    "react-native-modal": "^6.5.0",
    "react-navigation": "^2.17.0",
    "react-navigation-transitions": "^1.0.5"
  }
#2

Hey @asor7007,

When you say the app will shut down immediately, do you mean the app is crashing or is being backgrounded?

Cheers,

Adam

#3

Yeah, that’s right.
I am talking about going out to the background.

closed #4

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