how to exit app in react code example Example: close exit app react native import React, { BackHandler } from 'react-native'; BackHandler.exitApp();