react-navigation-is-focused-hoc
react-navigation-is-focused-hoc copied to clipboard
Ready to use solution using HOC to expose props.isFocused for react-navigation. No Redux needed.
### Steps to reproduce 1. Implement react-navigation-is-focused-hoc 2. use decorator @withNavigationFocus('MyControl') 3. slowness/delay when navigating ### Expected behaviour Navigation should occur without delay. ### Actual behaviour There is a very...
**This is not to attack this lib or take away the efforts of the author!** The library is outdated, while brilliant when there was no native support; now you can...
### Steps to reproduce this is my actual code : store.js import { createStore, compose, applyMiddleware } from 'redux'; import { persistStore, persistCombineReducers } from 'redux-persist'; import storage from 'redux-persist/lib/storage';...
``` export const Tabs = TabNavigator({ store: { screen: MainScreen, navigationOptions: { tabBarLabel: 'store', tabBarIcon: ({ tintColor }) => () }, }, categories: { screen: Categories, navigationOptions: { tabBarLabel: 'categories',...
I had a need to know the name of the previous route when my component is focused, so I implemented a third property to handle that.