Solvedreact native fast image 'React/RCTResizeMode.h' file not found

I installed the plugin using this command yarn add DylanVann/react-native-fast-image.git because I need the feature from master branch.

However, I received the above error when building the iOS app. Does anyone know how to solve it?

4 Answers

✔️Accepted Answer

I had the same problem. The link doesn't really work so you need to do the manual install. I did the cocoa pod instructions:

platform :ios, '9.0'

target 'ReactNativeFastImageCocoaPodsExample' do
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge',
    'DevSupport',
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket',
    'RCTImage',
  ]
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

+  pod 'react-native-fast-image', :path => '../node_modules/react-native-fast-image'
end

Make sure to include 'RCTImage',

You'll see here that RCTResizeMode is in React Image: https://github.com/facebook/react-native/blob/master/Libraries/Image/RCTResizeMode.m

The documentation should probably be updated to point this out.

Related Issues:

61
react native fast image Unable to compile: Duplicate interface definition for class 'FLAnimatedImageView'
Product-> Clean and then rm -rf ~/Library/Developer/Xcode/DerivedData/* did the trick for me. ...
39
react native fast image IOS invariant violation: requireNativeComponent FastImageView was not found in the UI manager
Make sure you run pod install and re-build your entire project. how can I fix this error?????? ...
25
react native fast image 'React/RCTResizeMode.h' file not found
I had the same problem The link doesn't really work so you need to do the manual install I did the c...
20
react native fast image Execution failed for task ':react-native-fast-image:compileDebugJavaWithJavac'.
I was able to work around this error by following this guide to disable the glide module ...
17
react native fast image Android build failed.( ios ok) compileReleaseJavaWithJavac FAILED
when i edit node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastI...
14
react native fast image Crash: NullPointerException on App Startup
@DylanVann @rtroncoso The issue still persists even after upgrading to 8.1.5 version on Nexus 5x dev...
9
react native fast image WebP with 6.0.0
Import in AppDelegate.m: An add: React Native version: v0.59.8 React version: 16.8.6 React Native Fa...
90
glide on Android 10 (Q) , Glide failed to load image from Image from local storage
I have found workaround for above issue on below link fix for above issue add android:requestLegacyE...
71
glide Glide is incompatible with androidx.*
(with in gradle.properties) worked for me Glide Version: 4.7.1 Device/Android Version: All ...
24
glide The 4.4.0 version is conflict with appcompat-v7:26.1.0
What about just: You'll have to manually include the support-fragment dependency but otherwise it sh...
22
glide Release Build Failed for Android Studio 3
As #2356 (thanks @SIARAY) shows the problem is Glide referencing android.graphics.Bitmap$Config.HARD...
20
glide Certain pictures not loading in Android 4.x
Hi guys From log it seems to be handshake exception Android 4.4 and lower don't support certain prot...
15
glide Failed to resolve variable '${project.groupId}' after refactoring to androidX
I get this error when migrating to androidx I do not use glide Adding implementation 'com.google.and...
10
glide Glide doesn't show the latest image if its from the same URL
@Parithi nice report/question! Re .signature() vs headers: signature is not that clever it's just a ...
8
glide No option for gif pause
Is there any way that we can pause gif? and then resume it again Glide Version: 3.7.1 Integration li...
3
glide You cannot start a load for a destroyed activity error
Hmm that's an interesting repro for this recurring issue There's likely not a good way around it ins...
3831
axios Axios catch error returns javascript error not server response
I have exactly the same environment Try this: Modify from console.log(error) to console.log(error.re...
731
scrapy ' error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 '
@euler16 for scrapy with Python 3 you'll need with Python 2 you'll need I wanted to install scrapy i...
684
laradock Mysql. The server requested authentication method unknown to the client [caching_sha2_password]
alter user 'username'@'localhost' identified with mysql_native_password by 'password'; would fix it....
517
react navigation screenIsActive prop / componentDidFocus event for TabNavigator items
It probably makes sense to add lifecycle hooks to screens In one of my Tabs i need to load Data from...
474
meteor [1.4.2.1] Error: ENFILE: file table overflow
I was getting the same after an upgrade to macOS Sierra Turns out macOS have a harsh limit on number...
423
ipython Last jedi release (0.18.0) is incompatible with ipython (7.19 and 7.18 tested); reason - column arg was deprecated, and now removed
As a temporary fix for anyone just trying to get things working again: It would be really nice if yo...
397
material ui Module not found: Can't resolve 'material-ui-icons/Menu' Martial Next
For anyone else experiencing this issue: npm install @material-ui/icons https://www.npmjs.com/packag...
395
laravel dompdf (1/1) ErrorException Non-static method Barryvdh\DomPDF\PDF::loadView() should not be called statically
This happens because you are namespacing the wrong PDF class You are namespacing Barryvdh\DomPDF\PDF...
378
webpacker localIdentName option moved in css-loader configuration
I faced same issue after upading css-loader but I solved it If you check css-loader readme ...
364
react navigation Send data back from child screen?
@itswaze You can do something along these lines to pass back from the child screen ...
358
react navigation How to goBack from nested StackNavigator?
@dhruvparmar372 According to the NOTE in the doc a navigator's navigation prop may not have the help...
352
axios POST request works in Browser but not on Node
This might be considered a duplicate of #789 I was able to use the form-data package with Axios in n...
317
react navigation Best pattern for a 'Save' button in the header
Try setting your component instance's handleSave function as a navigation state parameter after the ...
310
DefinitelyTyped [@types/react] RefObject.current should no longer be readonly
It's not It'a intentionally left readonly to ensure correct usage even if it's not frozen ...
306
react native navigation [V3][Android] FATAL EXCEPTION: create_react_context
OK after a good night of sleep I've found why I was having this issue In the MainApplication.java I ...
303
ts node Custom typings not working with ts-node 8.0.2
When using with ts-node you have to add --files flag After updating to ts-node version 8.0.2 the cus...
294
ohmyzsh compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew
Per #9602 (comment) brew cleanup fixed it for me I am using Apple M1 When I added this line: export ...
292
laradock SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
+1 I'm having the same problem here. Info: Docker version ($ docker --version): Docker version 17.12...
289
vagrant vagrant box update - Fails with 404 Not Found error
A workarround to add in your Vagrantfile: Vagrant version Host operating system Ubuntu 16.04.3 LTS G...
263
vagrant vagrant --help displays a rubygems error
To fix this error: Vagrant version Host operating system Expected behavior vagrant and vagrant --hel...
262
date fns Can't resolve 'date-fns/_lib/format/longFormatters'
You probably forgot to install date-fns or Code: import DateFnsUtils from '@date-io/date-fns'; ...
259
virtualenv Error creating virtualenv with python3.6
The original poster's problem is due to not having the 'python3.6-venv' package installed ...
252
provider A Product was used after being disposed. flutter: Once you have called dispose() on a Product, it can no longer be used.
Oh I see what you're doing Don't: DO: i have a ChangeNotifireProvider that such that i do pushReplac...
248
react navigation Reset to nested route, "There is no route defined for..."
A quick workaround (not heavily tested): set the key property to null on your action. ...
238
axios Adding headers to axios.post method
Edit: I had to add Authorization to allowed headers in my CORS filter @jffernandez I'm having the sa...
231
axios Adding Retry Parameter
@mericsson I am too in need of exponential backoff when retrying I've put together the following whi...
224
homebrew openjdk Cask adoptopenjdk8 exists in multiple taps
I think AdoptOpenJDK8 should be removed from the homebrew-cask-versions repo Somone(TM) should proba...
222
nativescript cli TNS doctor doesn't recognize Xcode (High Sierra)
HI @philipfeldmann Can yhou please run xcodebuild -version and paste the output? May be Xcode is ins...
215
axios BaseURL not being used
Please IGNORE THIS ISSUE Found the problem: I was setting baseUrl but it should be baseURL. ...
205
axios How to ignore SSL issues
You can configure axios to use a custom agent and set rejectUnauthorized to false for that agent: Ho...
202
ipython NameError: name 'sys' is not defined
Ok that was easy The Jedi release on 12/25 version 0.18.0 is breaking tab completion pip install --u...
190
axios How to send Raw http for Instagram Authentication?
Yes StringClient uses the application/x-www-form-urlencoded format by default while axios uses appli...
186
vuetify [Bug Report] Could not find a declaration file for module 'vuetify/lib'
@KaelWD Thank you for the link More specifically this comment helped me out to properly update my ts...