Error when switching scenes React native router flux

Viewed 431

I am currently working on a react native app using react native router flux and am getting an error message whenever switching scenes.

[Mon Jul 20 2020 10:14:47.942]  ERROR    currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput 
Transitioner@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:115890:36
StackView@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:111907:36
Navigator@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:102007:38
KeyboardAwareNavigator@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:106488:38
NavigationContainer@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:105963:38
App@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:99452:36
Router@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:99597:30
App
RCTView
RCTView
AppContainer@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:67802:22

I cant seem to find any info about this on google. It doesn't seem to be causing any issues with the app at the moment but would like to try and find out what is causing this incase it does down the line.

Thanks

1 Answers

I think, you use the new version of react-native 0.63.1. On the new version of react-native-router-flux, this issue will solved. Currently, I ignore this issue.

import { LogBox } from 'react-native';

LogBox.ignoreLogs(['currentlyFocusedField is deprecated']);
Related