react-native-router-flux

How to update back(previous) screen in react-native by react-native-router -flux

主宰稳场 提交于 2021-02-11 13:26:44
问题 I am using react-native-router-flux in my application. -I am using a parameter at my first screen and then i navigate to second screen. -On the second screen i am updating that parameter which was used at my first screen. -I want it to be updated when i navigate back to that screen (first screen). How can i implement this functionality. Thank You 回答1: @Vinzzz is right best solution is to use redux. But here how you can make this work without it. When you navigate to another view you call

How to update back(previous) screen in react-native by react-native-router -flux

风格不统一 提交于 2021-02-11 13:26:00
问题 I am using react-native-router-flux in my application. -I am using a parameter at my first screen and then i navigate to second screen. -On the second screen i am updating that parameter which was used at my first screen. -I want it to be updated when i navigate back to that screen (first screen). How can i implement this functionality. Thank You 回答1: @Vinzzz is right best solution is to use redux. But here how you can make this work without it. When you navigate to another view you call

Get previously scene with react-native-router-flux

微笑、不失礼 提交于 2021-01-29 22:36:13
问题 I'm trying to get the information from the previous page to the current one. I find this solution, but it doesn't work. Use the property prevScene of Actions but it return the same string of currentScente . Why? Furthermore, I see this relative question, but no one has answered. 回答1: I had the same question but I couldn't find the right prop for it. So I've passed a from props while navigating to the currentScene and used it for further processing, like this: Actions.currentSceneKey({ from:

Switching between pages in React-native also return information

情到浓时终转凉″ 提交于 2021-01-29 20:01:17
问题 I can't send value to another page. locID, tourInfo, userName, userEmail I want to send this value. But I'm new to react-native, I don't know. I want to post information in a different Componen. Mapview.js (locID, tourInfo,) => ShowInfo.js You can help me if you study the code. Actually, I have to do something very simple, but I don't know what to do. I need to send the variables (locID and tourInfo) to the ShowInfo.js Page. To open my location on the map. Mapview.js import React from 'react'

how to hide drawer in react router flux?

我怕爱的太早我们不能终老 提交于 2020-04-16 02:48:11
问题 hey there i am working with react native project and i am using react router flux for navigation and i use Drawer so how can i disable the drawer in some screens ? like signin screen ? i tried drawerLockMode={'lock-closed'} but it's not working here is mycode <RouterRedux backAndroidHandler={() => {}}> <Drawer> <Scene key="root" hideNavBar transitionConfig={transitionConfig}> <Scene key="Tuto" component={Tuto} type={ActionConst.RESET} /> <Scene initial key="CheckAuth" component={CheckAuth}

React Native Router Flux: navigate from main scene to child

你。 提交于 2020-02-21 10:34:56
问题 Version react-native-router-flux v3.35.0 react-native v0.31 I have few scenes. one of scenes have few sub-scenes. how can i navigate to one of sub-scenes from one of main scenes? Example : <Router createReducer={reducerCreate} getSceneStyle={getSceneStyle}> <Scene key="root"> <Scene key="login" direction="vertical" component={Login} title="Login" hideTabBar hideNavBar /> <Scene key="tabbar" initial={show}> <Scene key="main" tabs tabBarStyle={styles.tabBarStyle} tabBarSelectedItemStyle={styles

React Native Router Flux: navigate from main scene to child

别来无恙 提交于 2020-02-21 10:31:46
问题 Version react-native-router-flux v3.35.0 react-native v0.31 I have few scenes. one of scenes have few sub-scenes. how can i navigate to one of sub-scenes from one of main scenes? Example : <Router createReducer={reducerCreate} getSceneStyle={getSceneStyle}> <Scene key="root"> <Scene key="login" direction="vertical" component={Login} title="Login" hideTabBar hideNavBar /> <Scene key="tabbar" initial={show}> <Scene key="main" tabs tabBarStyle={styles.tabBarStyle} tabBarSelectedItemStyle={styles

React Native Router Flux: navigate from main scene to child

社会主义新天地 提交于 2020-02-21 10:30:07
问题 Version react-native-router-flux v3.35.0 react-native v0.31 I have few scenes. one of scenes have few sub-scenes. how can i navigate to one of sub-scenes from one of main scenes? Example : <Router createReducer={reducerCreate} getSceneStyle={getSceneStyle}> <Scene key="root"> <Scene key="login" direction="vertical" component={Login} title="Login" hideTabBar hideNavBar /> <Scene key="tabbar" initial={show}> <Scene key="main" tabs tabBarStyle={styles.tabBarStyle} tabBarSelectedItemStyle={styles

How can I get previous scene key in react-native-router-flux?

我只是一个虾纸丫 提交于 2020-01-24 20:50:53
问题 I need to get a previous scene key in componentWillReceiveProps using react-native-router-flux to checkout what screen I come back from and make some action on condition. I looked through a lot but haven`t found an answer. Are there any ways to do that ? 来源: https://stackoverflow.com/questions/46919066/how-can-i-get-previous-scene-key-in-react-native-router-flux

How to open Drawer When use a custom icon in Scene

倾然丶 夕夏残阳落幕 提交于 2020-01-24 19:24:09
问题 I using Drawer my app, my problem is i want use a custom icon in Drawer Scene and its ok but I dont see any docs to tell me how to open or close the drawer! This is my router : <Scene key="TabbarWrapper" component={NavigationDrawer} initial={true} > <Scene key="Tabbar" tabs={true} initial={true} tabBarStyle={styles.tabBar} default="ProductExplorer"> <Scene key="ProductExplorer" title="Lists" icon={TabIcon} iconName={"list"} initial={true} leftButtonIconStyle={{tintColor: "#FFF"}}