Open perryneal11 opened 1 year ago
Because the actionsheet is using the BlurView library, other areas that I use BlurView in are triggering the following error.
I installed using npm install @react-native-community/blur@latest
npm install @react-native-community/blur@latest
I was not able to run the sample app, and I am working in a private repo. But this is the component causing the error.
Describe what you expected to happen:
1.I expect to be able to add a BlurView in my app without it conflicting with the actionsheet
` <BlurView style={{ position: 'absolute', top: 0, left: 0, bottom: 0, right: 0, }} // viewRef={this.state.viewRef} blurType="dark" blurAmount={100} reducedTransparencyFallbackColor={AppStyle.colorTheme.black} /> {Platform.OS === 'ios' && ( <BlurView style={{ position: 'absolute', top: 0, left: 0, bottom: 0, right: 0, }} // viewRef={this.state.viewRef} blurType="dark" blurAmount={100} reducedTransparencyFallbackColor={AppStyle.colorTheme.black} /> )}` <ActionSheet ref={actionsheetRef} options={options} cancelButtonIndex={2} destructiveButtonIndex={1} onPress={index => imagePickerOption(index)} />
Adding resolutions to your package.json should fix this. It prevents from having multiple different versions of the blur package in your deps.
"resolutions": { "@react-native-community/blur": "4.4.0" },
Bug
Because the actionsheet is using the BlurView library, other areas that I use BlurView in are triggering the following error.
I installed using
npm install @react-native-community/blur@latest
Environment info
Steps To Reproduce
I was not able to run the sample app, and I am working in a private repo. But this is the component causing the error.
Describe what you expected to happen:
1.I expect to be able to add a BlurView in my app without it conflicting with the actionsheet
Reproducible sample code