I'd like to use react-native-blur on my iOS app with React Native, using an alternative visualization on iOS 7 (such as a backgroundColor), which does not support UIVisualEffectView
.
E.g.:
styles = {
backgroundColor: isVisualEffectViewSupported ? "transparent" : "rgba(0,0,0,.5)"
}
How can I detect if UIVisualEffectView is supported by the current platform?
Objective-C:
Swift: