I have main screen which have data and I wanna pass that data to comments page on press. I used react navigation and redux for navigation. My senior said to make reducer and pass state but I dont know how to do. Please help me. Thanks in advance.
onPress={() => this.props.navigation.dispatch({type: NAV_COMMENTS})}
触发此操作“ NAV_COMMENTS”时,将要传递的值存储在Store(该父组件的归约器)中,并在子组件中访问它们,例如(this.props.value ...)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.