Mahdi Bashirpour

Results comments of Mahdi Bashirpour

Use `static getDerivedStateFromProps` instead of that For example: ```ecmascript static getDerivedStateFromProps(props, state) { if (props.currentRow !== state.lastRow) { return { isScrollingDown: props.currentRow > state.lastRow, lastRow: props.currentRow, }; } // Return...

I had the same problem solved using the above method. Thank you

`keyboardType={'numeric'}`

`keyboardType={'numeric'}`

import {StackActions} from 'react-navigation'; import {NavigationActions} from 'react-navigation'; const resetAction = StackActions.reset({ index: 1, actions: [ // add other screen if you want NavigationActions.navigate({routeName: 'screen2'}), NavigationActions.navigate({routeName: 'newScreen'}), ], });

https://stackoverflow.com/questions/52253072/react-native-double-back-press-to-exit-app/52253073#52253073

import {StackActions} from 'react-navigation'; import {NavigationActions} from 'react-navigation'; const resetAction = StackActions.reset({ index: 1, actions: [ // add other screen if you want NavigationActions.navigate({routeName: 'screen2'}), NavigationActions.navigate({routeName: 'newScreen'}), ], });

I've updated my issue