halilb / halilb/react-native-textinput-effects

Throwing multiple exceptions when opening View on Android

オープン
#72 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
3k
フォーク
287
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

指定された React および React Native のバージョンを使って Android 7 でクラッシュを再現し、AndroidTextInput の animated backgroundColor 更新に注目してください。リンクされた React Native のアニメーションに関する issue を読み、View を開く経路を追跡してください。アプリが native type、unknown-view、fatal の例外なしに View を開ければ完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, javascript, react-native
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。