Questions tagged [react-native-router-flux]

react-native-router-flux is a routing package for react native based on new React Native Navigation API. It helps users to define all the routes in one central place and navigate and communicate between different screens in an easy way.

Official repository : link

621 questions
3
votes
1 answer

How to place tab bar at the bottom on android screen using router flux?

how do I place the tab bar at the bottom of the screen? I'm using react-native-router-flux 4.0.0-beta.6. Here is my code: export default class RouterComponent extends Component { render() { return (
zbryan
  • 805
  • 2
  • 12
  • 24
3
votes
1 answer

Navigating to another component using setTimeout does not run

I am trying to create a loading screen in React Native that will navigate to a confirmation screen once the time from a setTimeout function has been fulfilled. Currently, the screen loads, but does not navigate to the confirmation screen after the…
3
votes
0 answers

How to call an API on left scroll and call another API on right scroll using Flat List (horizontal) in React Native?

I have implemented Flat List (Horizontal) in React Native. I have used onEndReached and onEndReachedThreshold to call an API. So when I scroll right a API gets called, but am not able to scroll left and call a different API on that, as my initial…
3
votes
0 answers

React-Native black screen when reboot after a crash in production

I have a problem with my react-native app that appear both android and iOS but only in release configuration. When the app crash for any reason, it will stuck at boot at the next start even if I kill it on device. It's hard to debug, cause it's in…
3
votes
0 answers

React-Native-Router-Flux Actions Refresh Tabs and keep sub-scene navigation stack

here is my problem, I have this configuration using react-native-router-flux 3.39.1 and RN 0.40.0:
3
votes
1 answer

Hide navbar programatically in react-native-router-flux

I'm using react-native-router-flux. I'm aware one can show/hide the navbar per scene by using hideNavbar on the respective scene like so: const scenes = Actions.create(
sldk
  • 366
  • 5
  • 17
3
votes
4 answers

React-Native-Router-Flux - Left align title on Android

I'm using React-native-router-flux for an Android app, and by default the title seems to be centered. How can I left align it instead so it looks the way a Native Android Toolbar looks? Thank you!
Mod Mark
  • 199
  • 1
  • 2
  • 7
3
votes
1 answer

Scene, tabs (react-native-router-flux) and icons (react-native-vector-icons)

I have my router file as below : import *; const TabIcon = ({ selected, title }) => ( { title } ); const RouterComponent = () => (
3
votes
2 answers

Protect routes (scenes) using React Native Router Flux/Redux

I am trying to ensure that user will always be sent to login page if they are not currently logged in. I'm using Redux to store the current user id, so that's not the problem. The main problem is that no matter what checks I put in the router file,…
3
votes
1 answer

Pass props into TabIcon with React Native Router Flux

I'm using react-native-router-flux in my app and want to pass in paths to png images for my TabIcon components. I know I could just make a different tab icon component for each tab, but these icons would be exactly the same except for the image…
Phil Mok
  • 3,860
  • 6
  • 24
  • 36
3
votes
3 answers

react-native-router-flux disabling android back button from going back to login screen

Using react-native-router-flux, after user was success login, I would like to disable the back button from going back to the login screen. But I can not seem to find a way of getting the current "Scene" or "Stack" and then make some login…
MCMatan
  • 8,623
  • 6
  • 46
  • 85
3
votes
0 answers

Can't trigger action on click - react-native-router-flux

I'm creating my app with react-native and also using react-native-router-flux for routing. I have this piece of code in my router.js file and trying to add a button on the right that once is clicked it should trigger sayHello action. const CoinImg =…
splunk
  • 6,435
  • 17
  • 58
  • 105
3
votes
2 answers

Show Different Components using React-Native-Router-Flux Depending on Logged In Status

My app is using react-native-router-flux to decide which Component to show the user depending on whether the user is Logging in, or waiting for app to connect to backend (show ) Logged in (show ) Not Logged In (show
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
3
votes
1 answer

react native router flux & native base container

I'm new to react-native, so I think perhaps a bit too much "HTML" instead of "native", so my question could look stupid. I use react-native-router-flux for the routing, and native base for some nice components. I'd like to use the…
Peekmo
  • 2,843
  • 2
  • 19
  • 25
3
votes
1 answer

react native router flux: override left or right button inside component and access local function

I was able to override the button inside the compononent but not able to call the local function, for example when I press "Refresh", nothing happen. Is this the correct way to override the button text and perform function. Your help is appreciate.…