fix: crash when fast-image fails to load an image

There is some weird behaviour in react-native-fast-image
which causes it to crash whenever the onError or
onLoadEnd prop is set. The issue is documented in
https://github.com/DylanVann/react-native-fast-image/issues/504.
This commit is contained in:
Lei Nelissen
2023-04-12 11:31:33 +02:00
parent 5bbc3b8588
commit 67499b1103
3 changed files with 312 additions and 7 deletions

View File

@@ -9,7 +9,8 @@
"start": "react-native start",
"test": "jest",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx && tsc --noEmit",
"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"
"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'",
"postinstall": "patch-package"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.11",
@@ -29,6 +30,7 @@
"hermes-engine": "^0.11.0",
"i18n-js": "^3.9.2",
"lodash": "^4.17.21",
"patch-package": "^6.5.1",
"react": "18.2.0",
"react-airplay": "^1.2.0",
"react-native": "^0.70.8",