我正在為我的應(yīng)用程序使用 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,當(dāng)我添加一個(gè)secureTextEntry道具時(shí),我收到了這條消息:currentlyFocusedField 已棄用,將在未來(lái)的版本中刪除。使用 currentlyFocusedInput有誰(shuí)知道是什么導(dǎo)致了這個(gè)問(wèn)題,因?yàn)槲覠o(wú)法弄清楚......這是我的具有依賴項(xiàng)的 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",},
currentlyFocusedField 已棄用,將在未來(lái)版本中使用 TextInput 道具
慕尼黑5688855
2023-04-20 17:04:47