react-native-photo-view
react-native-photo-view copied to clipboard
Error: Native component for "PhotoViewAndroid" does not exist
I am using react-native: 0.50.4
and I'm receiving the error stated in title
I had the same issue. Then found this project : git-point and they are using react-native version 0.48.4. When I changed it, deleted node_modules and linked the package again, it worked.
@juffalow So do you mean I have to downgrade react-native version !
@yasir-netlinks you can try to follow the manual installation and add the required configuration into the MainApplication.java as in my case it's wasn't added automatically.
I have the same issue with RN version 0.52.0
me too
I have the same issue. I use react native 0.52.0
You can try to PhotoViewPackage() manually into your MainActivity.java for RN < 0.29 and to your MainApplication.java for RN >=0.29. It work for me.
import com.reactnative.photoview.PhotoViewPackage;
// ...
public class MainActivity extends ReactActivity {
// ...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new PhotoViewPackage() // add this manager
);
}
// ...
}
me too
me too
react-native: 0.55.4
I downgrade to RN 0.49.5 and install manually PhotoViewPackage() and it worked !
Hello, I'm having a very similar error message with RN0.59 on android (it works fine with ios) : `
Invariant Violation: requireNativeComponent: "PhotoViewAndroid" was not found in the UIManager.
Any ideas on how to fix it ? (for me downgrading to an older RN version is not an option due to other dependencies). Thx
Hello, I'm having a very similar error message with RN0.59 on android (it works fine with ios) : `
Invariant Violation: requireNativeComponent: "PhotoViewAndroid" was not found in the UIManager.
Any ideas on how to fix it ? (for me downgrading to an older RN version is not an option due to other dependencies). Thx
Any chance you figured this out? I'm encountering this with RN 0.60.4
zulip-mobile has implemented the photoview with alwx/react-native-photo-view#c58fd6b30
version.