react-native-router-flux
react-native-router-flux copied to clipboard
transitionConfig removed from createStackNavigator error
Version
Tell us which versions you are using:
- react-native-router-flux v4.3.0
- react v16.13.1
- react-native v0.6.4
Expected behavior
Before I was able to handle navigation animations with transitionConfig prop
Actual behavior
Now I can't control them
Any Ideas on how I can for example remove all navigation animations? Especially on android
@aksonov Any solutions?
You may try animationEnabled = false with latest master. Unfortunately transitionConfig was removed from react-navigation API (used by RNRF)
@aksonov Thanks! In my case is working.
latest master? i have to clone the repository so? im trying to do in 4.3.1 and doesnt work
Hi, I am getting below warning with react-native-router-flux@^4.3.1
Any fix for this. Attaching screenshot for the same.
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.consultant&modulesOnly=false&runModule=true:68303:36 WARN Deprecation in 'createStackNavigator': 'transitionConfig' is removed in favor of the new animation APIs StackView@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.consultant&modulesOnly=false&runModule=true:130160:26 Navigator@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.consultant&modulesOnly=false&runModule=true:113704:38 NavigationContainer@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.consultant&modulesOnly=false&runModule=true:117282:38 App@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.consultant&modulesOnly=false&runModule=true:103940:36 Router@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.consultant&modulesOnly=false&runModule=true:104087:30 App@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.consultant&modulesOnly=false&runModule=true:100154:36 RCTView View RCTView View AppContainer@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.consultant&modulesOnly=false&runModule=true:68303:36
@aksonov Thanks! In my case is working.
wehre to add this one "animationEnabled = false" , to resolve this problem, how to write code?
Hi I removed this warning with the following patch file: https://github.com/aksonov/react-native-router-flux/issues/3748#issuecomment-848615780
Hello
Did someone solve this problem ?