我無法在 iOS 上顯示模式使用強密碼,我已經嘗試了一切。
我試過使用 oneTimeCode 它不起作用,我試過blurOnSubmit={false} onSubmitEditing={() => Keyboard.dismiss()}它也不起作用。我已經在 XCODE 中添加了關聯的域,但它仍然不起作用。
我在 iPhone 上運行它,但在模擬器中也是如此。
我正在使用 iOS 16。Expo 46.0.16,react-native 0.69.6
我打開了自動填充密碼,并且在 iCloud 中啟用了鑰匙串。
<TextInput
style={{
borderColor: 'red',
borderWidth: 1,
height: 80,
width: '100%',
}}
textContentType="username"
value={val}
onChangeText={text => setVal(text)}
autoCorrect={false}
placeholder="Password"
/>
<TextInput
style={{
borderColor: 'red',
borderWidth: 1,
height: 80,
width: '100%',
}}
blurOnSubmit={false}
onSubmitEditing={() => Keyboard.dismiss()}
passwordRules="required: upper; required: lower; required: digit; max-consecutive: 2; minlength: 8;"
value={value}
onChangeText={text => setValue(text)}
autoCorrect={false}
placeholder="Password"
secureTextEntry
textContentType="newPassword"
/>
uj5u.com熱心網友回復:
associated domains您可以通過在 XCode 中添加來解決它。

請記住,域必須有效并且應該具有有效的 SSL 證書。
然后,您需要將關聯的域檔案添加到您的 Web 服務器。
這是它作業的最基本的例子。您可以在此處developer.apple.com查看整個示例以及相關域的更多資訊
檔案
{
"webcredentials": {
"apps": [ "MFSDSD3F.com.bundle.identify" ]
}
}
apps 陣列中的字串如下:
MFSDSD3F = TeamID - which you can find on your [developer account][3] under Membership details.
com.bundle.identify = Your Bundle Identifier.
托管
您必須使用帶有有效證書且沒有重定向的 https:// 托管檔案。
檔案網址
https://<fully qualified domain>/.well-known/apple-app-site-association
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/515421.html
標籤:IOS反应式世博会
