Skip to content

Commit

Permalink
107-ui-controls - fix prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LunatiqueCoder committed Aug 9, 2024
1 parent 4c8552b commit 6506e47
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion examples/MyTVProject/app/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export default function TabLayout() {
marginBottom: 0,
},
headerShown: false,
}}>
}}
>
<Tabs.Screen
name="index"
options={{
Expand Down
3 changes: 2 additions & 1 deletion examples/MyTVProject/app/(tabs)/explore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export default function ExploreScreen() {
name="code-slash"
style={styles.headerImage}
/>
}>
}
>
<ThemedView style={styles.titleContainer}>
<ThemedText type="title">Explore</ThemedText>
</ThemedView>
Expand Down
3 changes: 2 additions & 1 deletion examples/MyTVProject/app/(tabs)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export default function HomeScreen() {
source={require('@/assets/images/partial-react-logo.png')}
style={styles.reactLogo}
/>
}>
}
>
<View style={{height: 300}}>

Check warning on line 22 in examples/MyTVProject/app/(tabs)/index.tsx

View workflow job for this annotation

GitHub Actions / build

Inline style: { height: 300 }

Check warning on line 22 in examples/MyTVProject/app/(tabs)/index.tsx

View workflow job for this annotation

GitHub Actions / build

Inline style: { height: 300 }
<VideoPlayer source={{uri: 'https://vjs.zencdn.net/v/oceans.mp4'}} />
</View>
Expand Down
3 changes: 2 additions & 1 deletion examples/MyTVProject/app/(tabs)/tv_focus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export default function FocusDemoScreen() {
name="tv-outline"
style={styles.headerImage}
/>
}>
}
>
<ThemedView style={styles.titleContainer}>
<ThemedText type="title">TV event handling demo</ThemedText>
</ThemedView>
Expand Down
3 changes: 2 additions & 1 deletion examples/MyTVProject/components/Collapsible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export function Collapsible({
<TouchableOpacity
style={styles.heading}
onPress={() => setIsOpen((value) => !value)}
activeOpacity={0.6}>
activeOpacity={0.6}
>
<Ionicons
name={isOpen ? 'chevron-down' : 'chevron-forward-outline'}
size={18}
Expand Down
12 changes: 8 additions & 4 deletions examples/MyTVProject/components/EventHandlingDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ const PressableButton = (props: {
}
style={({pressed, focused}) =>
pressed || focused ? styles.pressableFocused : styles.pressable
}>
}
>
{({focused}) => {
return (
<ThemedText style={styles.pressableText}>
Expand Down Expand Up @@ -135,7 +136,8 @@ const TouchableOpacityButton = (props: {
event.eventKeyAction === 0 ? 'start' : 'end'
}`,
)
}>
}
>
<Text style={styles.pressableText}>{props.title}</Text>
</TouchableOpacity>
);
Expand All @@ -161,7 +163,8 @@ const TouchableHighlightButton = (props: {
event.eventKeyAction === 0 ? 'start' : 'end'
}`,
)
}>
}
>
<Text style={styles.pressableText}>{props.title}</Text>
</TouchableHighlight>
);
Expand All @@ -185,7 +188,8 @@ const TouchableNativeFeedbackButton = (props: {
event.eventKeyAction === 0 ? 'start' : 'end'
}`,
)
}>
}
>
<View style={styles.pressable}>
<Text style={styles.pressableText}>{props.title}</Text>
</View>
Expand Down
3 changes: 2 additions & 1 deletion examples/MyTVProject/components/ExternalLink.tv.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export function ExternalLink({href, ...rest}: Props) {
}
style={({pressed, focused}) => ({
opacity: pressed || focused ? 0.6 : 1.0,
})}>
})}
>
{rest.children}
</Pressable>
);
Expand Down
3 changes: 2 additions & 1 deletion examples/MyTVProject/components/ParallaxScrollView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export default function ParallaxScrollView({
styles.header,
{backgroundColor: headerBackgroundColor[colorScheme]},
headerAnimatedStyle,
]}>
]}
>
{headerImage}
</Animated.View>
<ThemedView style={styles.content}>{children}</ThemedView>
Expand Down

0 comments on commit 6506e47

Please sign in to comment.