Open tarbundiyahitesh21 opened 4 years ago
RN 0.62 has autolink functionality so you don't need add entry in pod
Came across the same working on the iOS Simulator. Running pod install and rebuilding the app fixed it for me.
Having the same issue, in Android 9 with Expo 38 and RN 38
I found that this package is not available in expo yet :(
https://expo.canny.io/feature-requests/p/add-react-native-fast-image
same for me
having the same issue on android, I'm not using Expo.
having the same issue on android, I'm not using Expo.
resolved by re-building app
I have the same issue here, I1m using Expo Bare Workflow.
make sure you reinstall podfile in ios folder
I'm also facing same issue, tried everything ./MainApplication.java
import com.dylanvann.fastimage.FastImageViewPackage;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost =
new ReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
packages.add(new YellowMessengerModulePackage());
packages.add(new FastImageViewPackage())
return packages;
}
@Override
protected String getJSMainModuleName() {
return "index";
}
};
})
Same problem here, using expo bare workflow
if you are using it in expo managed workflow it won't work. chek this solution https://github.com/DylanVann/react-native-fast-image/issues/704#issuecomment-656370679
having the same issue on android, I'm not using Expo.
resolved by re-building app
Tried npm start -c to clear expo cache and restarted the expo go app but still the same issue
same issue on a new test project
$ expo init fastimage-test
selected blank template
$ cd fastimage-test
$ expo install react-native-fast-image
Added a FastImage to App.js:
import FastImage from 'react-native-fast-image'
...
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<FastImage source={{uri:'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'}} style={{width:100,height:100}}/>
<StatusBar style="auto" />
</View>
Dependencies in package.json:
"dependencies": {
"expo": "~44.0.0",
"expo-status-bar": "~1.2.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.64.3",
"react-native-fast-image": "^8.5.11",
"react-native-web": "0.17.1"
},
Error:
Invariant Violation: requireNativeComponent: "FastImageView" was not found in the UIManager.
This error is located at:
in FastImageView (created by FastImageBase)
...
You can see the same issue in expo snack here.
https://snack.expo.dev/@johndimm/react-native-fast-image-test
Similar errors on iOS and Android.
FastImage can only be used in Expo with a custom development client. See the pinned response. You have to do some reading to understand how it works but after you get your dev client built with Expo EAS FastImage works out of the box.
Since I upgraded to latest Mac OS and XCODE (13.3) my app is complaining with this error but I can still build using Expo AES. Any ideas?
For me, I just re-build the app using Xcode. Remember to clean cache, some weird settings
It would be nice if expo and rn had some way of delineating code for dev enviroment and code for production so you could build FastImage right next to all your native Image elements and during production it would just toss the native element. Bit frustrating because I can't debug the fast image package while developing and I have to wait until it's built to test it out.
I resolved rebuilding app, I'm using react-native CLI and testing in a real tablet via cable, i used the command "yarn start --reset-cache" and "yarn android" and everything works fine.
for me, solved by pod repo update
and pod install
Any alternatives?
**
ERROR Invariant Violation: requireNativeComponent: "FastImageView" was not found in the UIManager.
**
pod install succes npm install succes
Same problem here
I am using react-native 0.62.2 , and it's
pod 'RNFastImage', :path => '../node_modules/react-native-fast-image'
also available in podlist file
but getting this issue.