React Native: Double back press to Exit App
问题 How to exit application with twice clicking the back button without needing Redux I was looking for a solution to limit the user and do not get out of the application with one click in react native. 回答1: import React, {Component} from 'react'; import {BackHandler, View, Dimensions, Animated, TouchableOpacity, Text} from 'react-native'; let {width, height} = Dimensions.get('window'); export default class App extends Component<Props> { state = { backClickCount: 0 }; constructor(props) { super