File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
example/src/screens/usage Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ import { BlurView } from '@react-native-community/blur';
3636import TwitterVerifiedSvg from '../../../assets/twitter-verified.svg' ;
3737import type { TwitterProfileStarterScreenNavigationProps } from '../../navigation' ;
3838
39+ // From reading comments online, the BlurView does not work properly for Android <= 11.
40+ // We will have a boolean to check if we can use the BlurView.
41+ // Note that Android 12 begins at SDK version 31
42+ const canUseBlurView =
43+ Platform . OS === 'ios' || ( Platform . OS === 'android' && Number ( Platform . Version ) >= 31 ) ;
44+
3945const ROOT_HORIZONTAL_PADDING = 12 ;
4046const TWITTER_PRIMARY_COLOR = '#1d9bf0' ;
4147const DISABLED_COLOR = 'rgba(255, 255, 255, 0.6)' ;
You can’t perform that action at this time.
0 commit comments