Data not being passed between views: React Native
- Z D 问题:
const SearchScreen = props => { {navigation} = props; S const SearchHandler = props => navigation.navigate(‘SearchDetail’, {name: ‘Testing Params’} return ( <View> <ButtonLg title=‘View details’ onPress={SearchHandler} >
const DetailScreen = props => { console.log(props)}
- 回答: