halilb / halilb/react-native-textinput-effects
Throwing multiple exceptions when opening View on Android
- Ngôn ngữ chính
- JavaScript
- Star
- 3k
- Fork
- 287
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Tái hiện lỗi crash trên Android 7 với các phiên bản React và React Native được liệt kê, tập trung vào việc cập nhật backgroundColor có animation cho AndroidTextInput. Đọc issue về animation của React Native được liên kết và theo dõi luồng mở View; hoàn tất khi ứng dụng mở View mà không xảy ra các exception native type, unknown-view hoặc fatal.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- android, javascript, react-native
- Lĩnh vực
- mobile
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100