Skip to content

Commit 89f7ad7

Browse files
committed
chore: add missing variable for tutorial
1 parent 6e137f3 commit 89f7ad7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

example/src/screens/usage/TwitterProfileStarter.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ import { BlurView } from '@react-native-community/blur';
3636
import TwitterVerifiedSvg from '../../../assets/twitter-verified.svg';
3737
import 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+
3945
const ROOT_HORIZONTAL_PADDING = 12;
4046
const TWITTER_PRIMARY_COLOR = '#1d9bf0';
4147
const DISABLED_COLOR = 'rgba(255, 255, 255, 0.6)';

0 commit comments

Comments
 (0)