Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant Violation: requireNativeComponent: "BlurView" was not found in the UIManager iOS #17

Closed
theambidextrous opened this issue Jan 19, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@theambidextrous
Copy link

Invariant Violation: requireNativeComponent: "BlurView" was not found in the UIManager.

This error is located at:
    in BlurView (at BlurView.ios.js:14)
    in BlurView (at ActionSheetCustom.js:214)
    in RCTView (at View.js:34)
    in View (at createAnimatedComponent.js:217)
    in AnimatedComponent (at createAnimatedComponent.js:278)
    in AnimatedComponentWrapper (at ActionSheetCustom.js:198)
    in RCTSafeAreaView (at SafeAreaView.js:51)

Environment info

Library Version
@alessiocancian/react-native-actionsheet ^3.1.1
react-native 0.64.1

Steps To Reproduce

Am simply using the example code only that i'm wrapping in a functional component

<ActionSheet
          ref={sheetRef}
          title={<SheetTitleText>Choose a store</SheetTitleText>}
          options={options}
          styles={styles}
          cancelButtonIndex={0}
          destructiveButtonIndex={4}
          onPress={(index) => {
            /* do something */
          }}
    />

I have my options as a list of Jxs components and not plain strings

Describe what you expected to happen:

  1. Load actionsheet the same way android does

Android screenshort below

image

Reproducible sample code

Example CustomActionSheet code is what i have above

@theambidextrous theambidextrous added the bug Something isn't working label Jan 19, 2022
@alessiocancian
Copy link
Owner

alessiocancian commented Jan 19, 2022

Did you run pod install?

If you are using expo you need to downgrade to v2.4.11 because it isn't supported in v3 (see #14)

@theambidextrous
Copy link
Author

Thanks for reply..

I did run pod install within ios folder. infact i removed the pods folder deleted podfile.lock and i ran pod install.. nothing yet

Am not using Expo

@theambidextrous
Copy link
Author

I had it resolved. I removed the app on simulator, deleted pods folder, ran pod install and did a fresh install, somehow this solved it.

@takecover
Copy link

In my case, refreshing pods didn't work. I installed @react-native-community/blur in my app, and it's been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants