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. Mahdi Bashirpour 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(props); this.springValue = new Animated.Value(100); } componentWillMount() { BackHandler