Ioni c React Я не могу печатать на входах - PullRequest
0 голосов
/ 09 мая 2020

Я не могу печатать на любом входе, используя ioni c react with Capacitor (в последней версии используется android X). Это начало происходить, когда я обновил проект для использования andorid X, дело в том, что это происходит только на телефоне с android 10, я тестировал его в браузерах android 9 и chrome, и я могу отлично печатать на вход.

Вот фрагмент зависимостей от пакета. json

{
    "ionic": "^5.4.16",
    "cordova": "^9.0.0",
    "react": "^16.10.1",
    "@material-ui/core": "^4.6.1",
    "@material-ui/icons": "^4.5.1",
    "@ionic/pwa-elements": "^1.4.1",
    "@capacitor/android": "^2.0.1",
    "@capacitor/core": "1.3.0",
    "@ionic-native/core": "^5.16.0",
}

Вот фрагмент компонента, это функциональный компонент. Извините, я не могу предоставить полный код

const [username, setUsername] = useState('');

const handleUsername = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
    setUsername(e.target.value)
}

return (
    <TextField
        autoFocus 
        className='input'
        value={username}
        onChange={handleUsername} 
        label={'Username'}
        margin='normal' />
)

А вот зависимости проекта android

    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation "androidx.appcompat:appcompat:1.1.0"
    implementation "androidx.core:core:1.2.0"
    implementation "androidx.coordinatorlayout:coordinatorlayout:1.1.0"
    implementation 'androidx.constraintlayout:constraintlayout:1.1.2'

    implementation project(':capacitor-android')
    testImplementation 'junit:junit:4.12'
    implementation 'com.google.android.gms:play-services-location:16.0.0'
    implementation 'io.socket:socket.io-client:1.0.0'
    implementation 'com.google.firebase:firebase-ml-vision:24.0.0'
    implementation 'com.google.firebase:firebase-ml-vision-barcode-model:16.0.1'
    implementation 'com.jakewharton:butterknife:10.2.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
    implementation 'androidx.webkit:webkit:1.0.0'
    implementation project(':capacitor-cordova-android-plugins')
...