halilb / halilb/react-native-textinput-effects

Throwing multiple exceptions when opening View on Android

Abierto
#72 9 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
3k
Forks
287
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Versions:
`Android 7`

```
"react": "16.0.0-beta.5",
"react-native": "0.49.3",
"react-native-textinput-effects": "^0.4.1"
```
First exception:
```
Exception in native call
com.facebook.react.bridge.JSApplicationIllegalArgumentException: Error while updating property 'backgroundColor' in shadow node of type: AndroidTextInput
```
Then:
```
Error while updating prop backgroundColor
com.facebook.react.bridge.UnexpectedNativeTypeException: TypeError: expected dynamic type `int64', but had type `string'
```
This finally crashes the app:
```
FATAL EXCEPTION: main
Process: com.xxx, PID: 30962
com.facebook.react.uimanager.IllegalViewOperationException: Trying to add unknown view tag: 94
detail: View tag:100
children(0): [
],
viewsToAdd(1): [
[0,94],
]
```

Android expects colors as int yet somewhow it is passed as a string it seems.

Looks like there is an issue with Animations in Android:
https://github.com/facebook/react-native/issues/13984

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Reproduce the crash on Android 7 with the listed React and React Native versions, focusing on the animated backgroundColor update for AndroidTextInput. Read the linked React Native animation issue and trace the View-opening path; done means the app opens the View without the native type, unknown-view, or fatal exceptions.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
android, javascript, react-native
Área
mobile
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.