参考https://github.com/aksonov/react-native-router-flux/issues/3691
This issue is related to transitive dependency on React-Navigation. It is solved in #1010. The fix is released and will take effect as soon as react-native-router-flux updates its dependency on latest react-navigation release.
For now, as a workaround, search which file uses the deprecated currentlyFocusedField() that causes the error and try changing it to currentlyFocusedInput(). In my case, changing them in the following file did the trick:
node_modules/@react-navigation/native/lib/module/createKeyboardAwareNavigator.js