aksonov / react-native-router-flux

The first declarative React Native router
MIT License
8.98k stars 2.11k forks source link

currentlyFocusedField is deprecated and will be removed in a future release #3691

Open zx01785233 opened 4 years ago

zx01785233 commented 4 years ago

I use react native 0.63.1&& "react-native-router-flux": "^4.2.0"

but I want to move screen, "currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput", still moved with the error.

new version of react-native 0.63.1,I ignore this issue。

quoccuong123456 commented 4 years ago

+1

nguyenxuankiet262 commented 4 years ago

+1 Same issue

phattran1201 commented 4 years ago

+1

maxlxq commented 4 years ago

+1

mesutissimo commented 4 years ago

+1 but I'm just ignoring it with LogBox.ignoreAllLogs() for now

AlanLee97 commented 4 years ago

+1

WGoinz commented 4 years ago

+1 RN 63.2

sametpalitci commented 4 years ago

+1

Heitorpsoa commented 4 years ago

+1

Mhmetengineer commented 4 years ago

Same İssue..

HumansAreWeak commented 4 years ago

+1

waelmg commented 4 years ago

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

Mhmetengineer commented 4 years ago

@waelmg Thank's thats work..

ilhamsa1 commented 4 years ago

same issue ...

aditya37 commented 4 years ago

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

thx, thats work

ra0x3 commented 4 years ago

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

This worked for me with the following dependencies:

  "dependencies": {
    "@react-native-community/checkbox": "^0.5.3",
    "@react-native-community/masked-view": "^0.1.10",
    "@react-navigation/native": "^5.7.3",
    "axios": "^0.19.2",
    "prettier": "^2.0.5",
    "react": "16.13.1",
    "react-native": "0.63.2",
    "react-native-emoji": "^1.8.0",
    "react-native-gesture-handler": "^1.7.0",
    "react-native-image-picker": "^2.3.3",
    "react-native-reanimated": "^1.13.0",
    "react-native-router-flux": "^4.2.0",
    "react-native-safe-area-context": "^3.1.4",
    "react-native-screens": "^2.10.1",
    "react-native-vector-icons": "^7.0.0",
    "react-redux": "^7.2.1",
    "redux": "^4.0.5",
    "redux-thunk": "^2.3.0"
  }

Just FYI no other fix on Google has worked for me save this one. 💯

duyhodev commented 3 years ago

+1

maxlxq commented 3 years ago

+1 RN 0.65.1