What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-11 22:10:14
how to rerender a page in React when the user clicks the back button
We had a similar desire and solved it by passing a refresh function from the parent to the child. for example, when you open the child, you would have something like navigate('Child', { refresh: refreshFunction } You can then access this function in the... Add solution -
Javascript 2021-09-30 15:57:05
react navigation history clear
import {NavigationActions, StackActions} from 'react-navigation'; const resetAction = StackActions.reset({ index: 0, actions: [NavigationActions.navigate({routeName: 'Home'})], key: null, }); this.props.navigation.dispatch(rese... Add solution -
Javascript 2021-09-12 10:22:02
text input underline react native
import React, {Component} from 'react'; import {StyleSheet, Text, View,TextInput,TouchableOpacity} from 'react-native'; export default class App extends Component { render() { return ( <View style={styles.container}> <Text st... Add solution