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

warning header: null' will be removed in a future version. Use 'headerShown: false' instead

Open Wellbrito29 opened this issue 3 years ago • 12 comments

Tell us which versions you are using:

react-native-router-flux v4.3.1 react v16.13.1 react-native v0.63.4

Actual behavior im having this warning:

Deprecation in 'navigationOptions':

  • 'header: null' will be removed in a future version. Use 'headerShown: false' instead

any ideas how to solve?

Wellbrito29 avatar Mar 28 '21 17:03 Wellbrito29

Hi, I am getting below warning with react-native-router-flux@^4.3.1

**WARN Deprecation in 'navigationOptions':

  • 'header: null' will be removed in a future version. Use 'headerShown: false' instead** 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@

Any fix for this. Attaching screenshot for the same. warning - 2

khdarshan avatar Mar 30 '21 06:03 khdarshan

Following, any update on this, would be nice to resolve, thanks!

cody-wingert avatar Apr 21 '21 14:04 cody-wingert

I have the same problem, but in plus I have "Deprecation in 'createStackNavigator':'transitionConfig' is removed in favor of the new animation APIs" image P.S I'm using: react v^17.0.1 react-native v^0.62.2 react-native-router-flux v^4.3.1 react-navigation v^4.4.4

halilov2020 avatar May 15 '21 11:05 halilov2020

any solution on this issue? I have also getting the same warning..

"react": "17.0.1", "react-native": "0.64.2", "react-native-router-flux": "^4.3.1",

suny2talk avatar Jul 21 '21 07:07 suny2talk

so am i

taoxq avatar Jul 25 '21 02:07 taoxq

Deprecation in 'navigationOptions': 'header: null' will be removed in a future version. Use 'headerShown: false' instead

Deprecation in 'createStackNavigator': 'transitionConfig' is removed in favor of the new animation APIs

Deprecation in 'createStackNavigator': 'cardStyle' is moved to 'navigationOptions'. Specify it in 'defaultNavigationOptions' to keep the same behaviour.

ThomasStubbe avatar Aug 16 '21 09:08 ThomasStubbe

Same. Having this issue. Has there really been no fix for this yet?

charlieswing avatar Aug 29 '21 01:08 charlieswing

any update here?

soheils2 avatar Sep 22 '21 05:09 soheils2

https://github.com/aksonov/react-native-router-flux/pull/3799 its not a big problem to make this disappear...

please make these work:

Deprecation in 'createStackNavigator':
'transitionConfig' is removed in favor of the new animation APIs

Deprecation in 'createStackNavigator':
'cardStyle' is moved to 'navigationOptions'. Specify it in 'defaultNavigationOptions' to keep the same behaviour.

soheils2 avatar Sep 22 '21 06:09 soheils2

Looks like the author fell off the face of earth at the beginning of 2020 and hasn't made any contributions since march of this year. Hope he's doing well, but I'll probably be moving onto a different solution with all the issues that have popped up for me upgrading to more recent expo/react/react-navigation versions.

mikemcguire avatar Oct 28 '21 03:10 mikemcguire

Yeah this looks to be abandoned

cameronmurphy avatar Oct 28 '21 03:10 cameronmurphy

Since it's still in react-navigation v4 and looks abandoned by the author, best go for react-navigation v5

cybercris avatar Nov 30 '21 21:11 cybercris