Skip to content

Commit

Permalink
feat: Style it better
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jan 23, 2025
1 parent 96d77fa commit ebdf7e2
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions example/src/screens/ViewScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function ViewScreen() {
<View
style={[styles.viewContainer, { borderColor: colors.foreground }]}
>
<TestView someProp={true} />
<TestView style={styles.view} someProp={true} />
</View>
</View>

Expand Down Expand Up @@ -70,9 +70,18 @@ const styles = StyleSheet.create({
},
viewContainer: {
width: '80%',
height: '80%',
borderWidth: 1,
borderRadius: 2,
aspectRatio: 1,
borderWidth: 2,
borderRadius: 5,
shadowColor: 'black',
shadowOffset: { width: 1, height: 2 },
shadowOpacity: 0.4,
shadowRadius: 5,
},
view: {
borderRadius: 5,
overflow: 'hidden',
flex: 1,
},
testCase: {
width: '100%',
Expand Down

0 comments on commit ebdf7e2

Please sign in to comment.