为了账号安全,请及时绑定邮箱和手机立即绑定

currentlyFocusedField 已弃用,将在未来版本中使用 TextInput 道具

currentlyFocusedField 已弃用,将在未来版本中使用 TextInput 道具

慕尼黑5688855 2023-04-20 17:04:47
我正在为我的应用程序使用 expo 管理的工作流程,这是我的 expo 信息:Expo CLI 3.27.13 environment info:System:  OS: macOS Mojave 10.14.6  Shell: 3.2.57 - /bin/bashBinaries:  Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node  Yarn: 1.22.5 - /usr/local/bin/yarn  npm: 6.14.5 - ~/.nvm/versions/node/v10.15.3/bin/npmSDKs:  iOS SDK:    Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1IDEs:  Xcode: 10.1/10B61 - /usr/bin/xcodebuildnpmPackages:  expo: ^39.0.0 => 39.0.3   react: 16.13.1 => 16.13.1   react-dom: 16.13.1 => 16.13.1   react-native: https://github.com/expo/react-native/archive/sdk-39.0.0.tar.gz => 0.63.2   react-native-web: ~0.13.7 => 0.13.14 npmGlobalPackages:  expo-cli: 3.27.13Expo Workflow: managed我正在使用 react-native 的 TextInput,当我添加一个secureTextEntry道具时,我收到了这条消息:currentlyFocusedField 已弃用,将在未来的版本中删除。使用 currentlyFocusedInput有谁知道是什么导致了这个问题,因为我无法弄清楚......这是我的具有依赖项的 package.json 文件:"dependencies": {"@expo/spawn-async": "^1.5.0","@hookform/resolvers": "^0.1.1","@react-native-community/masked-view": "0.1.10","@react-navigation/drawer": "^5.9.2","@react-navigation/material-top-tabs": "^5.2.18","@react-navigation/native": "^5.7.5","@react-navigation/stack": "^5.9.2","add": "^2.0.6","axios": "^0.19.2","card-validator": "^8.0.0","expo": "^39.0.0","expo-asset": "~8.2.0","expo-constants": "~9.2.0","expo-facebook": "~9.0.0","expo-file-system": "~9.2.0","expo-font": "~8.3.0","expo-google-app-auth": "^8.1.0","expo-location": "~9.0.0","expo-media-library": "~9.2.1","expo-notifications": "~0.7.2","expo-permissions": "~9.3.0","expo-status-bar": "~1.0.2","jwt-decode": "^2.2.0","lodash": "^4.17.20","lodash.debounce": "^4.0.8","metro-config": "^0.59.0","moment": "^2.26.0","prop-types": "^15.7.2","react": "16.13.1","react-dom": "16.13.1","react-hook-form": "^6.8.6",},
查看完整描述

1 回答

?
波斯汪

TA贡献1811条经验 获得超4个赞

似乎问题出在“keyboard-aware-scroll-view”包中。


查看完整回答
反对 回复 2023-04-20
  • 1 回答
  • 0 关注
  • 309 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信