1- import { Image } from 'expo-image' ;
2- import { Platform , StyleSheet } from 'react-native' ;
1+ import { useFlag } from "@featurevisor/react" ;
2+ import { Image } from "expo-image" ;
3+ import { Platform , StyleSheet } from "react-native" ;
34
4- import { HelloWave } from ' @/components/HelloWave' ;
5- import ParallaxScrollView from ' @/components/ParallaxScrollView' ;
6- import { ThemedText } from ' @/components/ThemedText' ;
7- import { ThemedView } from ' @/components/ThemedView' ;
5+ import { HelloWave } from " @/components/HelloWave" ;
6+ import ParallaxScrollView from " @/components/ParallaxScrollView" ;
7+ import { ThemedText } from " @/components/ThemedText" ;
8+ import { ThemedView } from " @/components/ThemedView" ;
89
910export default function HomeScreen ( ) {
11+ const isFeatureEnabled = useFlag ( "baz" ) ;
12+
1013 return (
1114 < ParallaxScrollView
12- headerBackgroundColor = { { light : ' #A1CEDC' , dark : ' #1D3D47' } }
15+ headerBackgroundColor = { { light : " #A1CEDC" , dark : " #1D3D47" } }
1316 headerImage = {
1417 < Image
15- source = { require ( ' @/assets/images/partial-react-logo.png' ) }
18+ source = { require ( " @/assets/images/partial-react-logo.png" ) }
1619 style = { styles . reactLogo }
1720 />
18- } >
21+ }
22+ >
23+ < ThemedView style = { styles . stepContainer } >
24+ < ThemedText type = "subtitle" > Feature evaluation:</ ThemedText >
25+ < ThemedText >
26+ Feature "baz" is { isFeatureEnabled ? "enabled" : "disabled" } .
27+ </ ThemedText >
28+ </ ThemedView >
1929 < ThemedView style = { styles . titleContainer } >
2030 < ThemedText type = "title" > Welcome!</ ThemedText >
2131 < HelloWave />
2232 </ ThemedView >
2333 < ThemedView style = { styles . stepContainer } >
2434 < ThemedText type = "subtitle" > Step 1: Try it</ ThemedText >
2535 < ThemedText >
26- Edit < ThemedText type = "defaultSemiBold" > app/(tabs)/index.tsx</ ThemedText > to see changes.
27- Press{ ' ' }
36+ Edit{ " " }
37+ < ThemedText type = "defaultSemiBold" > app/(tabs)/index.tsx</ ThemedText > { " " }
38+ to see changes. Press{ " " }
2839 < ThemedText type = "defaultSemiBold" >
2940 { Platform . select ( {
30- ios : ' cmd + d' ,
31- android : ' cmd + m' ,
32- web : ' F12' ,
41+ ios : " cmd + d" ,
42+ android : " cmd + m" ,
43+ web : " F12" ,
3344 } ) }
34- </ ThemedText > { ' ' }
45+ </ ThemedText > { " " }
3546 to open developer tools.
3647 </ ThemedText >
3748 </ ThemedView >
@@ -45,9 +56,12 @@ export default function HomeScreen() {
4556 < ThemedText type = "subtitle" > Step 3: Get a fresh start</ ThemedText >
4657 < ThemedText >
4758 { `When you're ready, run ` }
48- < ThemedText type = "defaultSemiBold" > npm run reset-project</ ThemedText > to get a fresh{ ' ' }
49- < ThemedText type = "defaultSemiBold" > app</ ThemedText > directory. This will move the current{ ' ' }
50- < ThemedText type = "defaultSemiBold" > app</ ThemedText > to{ ' ' }
59+ < ThemedText type = "defaultSemiBold" >
60+ npm run reset-project
61+ </ ThemedText > { " " }
62+ to get a fresh < ThemedText type = "defaultSemiBold" > app</ ThemedText > { " " }
63+ directory. This will move the current{ " " }
64+ < ThemedText type = "defaultSemiBold" > app</ ThemedText > to{ " " }
5165 < ThemedText type = "defaultSemiBold" > app-example</ ThemedText > .
5266 </ ThemedText >
5367 </ ThemedView >
@@ -57,8 +71,8 @@ export default function HomeScreen() {
5771
5872const styles = StyleSheet . create ( {
5973 titleContainer : {
60- flexDirection : ' row' ,
61- alignItems : ' center' ,
74+ flexDirection : " row" ,
75+ alignItems : " center" ,
6276 gap : 8 ,
6377 } ,
6478 stepContainer : {
@@ -70,6 +84,6 @@ const styles = StyleSheet.create({
7084 width : 290 ,
7185 bottom : 0 ,
7286 left : 0 ,
73- position : ' absolute' ,
87+ position : " absolute" ,
7488 } ,
7589} ) ;
0 commit comments