React-Native iOS 14 local Images issue-Resolved

npm i -g patch-package

  1. Open the file node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
  2. Edit the source code as follow:
node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m

First Options:

npx patch-package react-native

Second Option:

When .patch will be created, next we will add postinstall to script in package.json file

"scripts": {
"postinstall": "patch-package"
}
patch-package

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Imdad Hussain

Imdad Hussain

24 Followers

Mobile Engineer @ Nova, React | React Native|Redux, JavaScript | TypeScript mostly Frontend | more at https://hussainimdad.web.app/