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

currentlyFocusedField is deprecated and will be removed in a future release

Open zx01785233 opened this issue 5 years ago • 18 comments

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。

zx01785233 avatar Jul 22 '20 07:07 zx01785233

+1

quoccuong123456 avatar Jul 22 '20 10:07 quoccuong123456

+1 Same issue

nguyenxuankiet262 avatar Jul 22 '20 10:07 nguyenxuankiet262

+1

phattran1201 avatar Jul 23 '20 07:07 phattran1201

+1

maxlxq avatar Jul 24 '20 08:07 maxlxq

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

mesutissimo avatar Aug 01 '20 21:08 mesutissimo

+1

AlanLee97 avatar Aug 02 '20 07:08 AlanLee97

+1 RN 63.2

WGoinz avatar Aug 05 '20 15:08 WGoinz

+1

sametpalitci avatar Aug 06 '20 10:08 sametpalitci

+1

Heitorpsoa avatar Aug 06 '20 18:08 Heitorpsoa

Same İssue..

Mhmetengineer avatar Aug 07 '20 14:08 Mhmetengineer

+1

HumansAreWeak avatar Aug 07 '20 15:08 HumansAreWeak

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

waelmg avatar Aug 09 '20 12:08 waelmg

@waelmg Thank's thats work..

Mhmetengineer avatar Aug 10 '20 08:08 Mhmetengineer

same issue ...

ilhamsa1 avatar Aug 17 '20 06:08 ilhamsa1

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

aditya37 avatar Aug 25 '20 11:08 aditya37

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. 💯

ra0x3 avatar Sep 16 '20 00:09 ra0x3

+1

duyhodev avatar May 07 '21 06:05 duyhodev

+1 RN 0.65.1

maxlxq avatar Aug 27 '21 09:08 maxlxq