[React Native] currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
- node_modules\react-native\Libraries\LogBox\LogBox.js:148:8 in registerError
- node_modules\react-native\Libraries\LogBox\LogBox.js:59:8 in errorImpl
- node_modules\react-native\Libraries\LogBox\LogBox.js:33:4 in console.error
- node_modules\expo\build\environment\react-native-logs.fx.js:27:4 in error
- node_modules\react-native\Libraries\Components\TextInput\TextInputState.js:39:4 in currentlyFocusedField
* http://172.20.10.3:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=ios&dev=true&hot=false&minify=false:195584:90 in <unknown>
- node_modules\react-native\Libraries\vendor\emitter\EventEmitter.js:189:10 in emit
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:416:4 in __callFunction
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:109:6 in __guard$argument_0
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:364:10 in __guard
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:108:4 in callFunctionReturnFlushedQueue
* [native code]:null in callFunctionReturnFlushedQueue
아래와 같이 수정
const currentlyFocusedField = TextInput.State.currentlyFocusedInput ? findNodeHandle(TextInput.State.currentlyFocusedInput()) : TextInput.State.currentlyFocusedInput()
native-base 컴포넌트 안에
InputText 를 사용했을 때 일어났는데
저렇게 해결했다
반응형
글이 도움이 되셨다면 공감과 광고 클릭 한번 부탁드립니다! 💕
감사합니다 ✨
댓글
이 글 공유하기
다른 글
-
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default a..
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default a..
2020.12.23 -
Something went wrong installing the "sharp" module
Something went wrong installing the "sharp" module
2020.12.23 -
[xcode] expo-updates must be configured with a valid update URL or scope key. exception 오류
[xcode] expo-updates must be configured with a valid update URL or scope key. exception 오류
2020.12.18 -
#1. react native 시작하기
#1. react native 시작하기
2020.09.23