react-native-router-flux icon indicating copy to clipboard operation
react-native-router-flux copied to clipboard

transitionConfig removed from createStackNavigator error

Open dennisbouwpas opened this issue 3 years ago • 7 comments

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?

dennisbouwpas avatar Mar 23 '21 11:03 dennisbouwpas

You may try animationEnabled = false with latest master. Unfortunately transitionConfig was removed from react-navigation API (used by RNRF)

aksonov avatar Mar 24 '21 07:03 aksonov

@aksonov Thanks! In my case is working.

dennisbouwpas avatar Mar 24 '21 09:03 dennisbouwpas

latest master? i have to clone the repository so? im trying to do in 4.3.1 and doesnt work

Wellbrito29 avatar Mar 28 '21 17:03 Wellbrito29

Hi, I am getting below warning with react-native-router-flux@^4.3.1 Any fix for this. Attaching screenshot for the same. warning - 1

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

khdarshan avatar Mar 30 '21 06:03 khdarshan

@aksonov Thanks! In my case is working.

wehre to add this one "animationEnabled = false" , to resolve this problem, how to write code?

lafeillou avatar May 11 '21 07:05 lafeillou

Hi I removed this warning with the following patch file: https://github.com/aksonov/react-native-router-flux/issues/3748#issuecomment-848615780

yberstad avatar May 26 '21 10:05 yberstad

Hello

Did someone solve this problem ?

bytemtek avatar Sep 18 '21 10:09 bytemtek