Skip to content

Commit

Permalink
feat(example): make warnings bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-lando committed Feb 21, 2024
1 parent e2e4991 commit f5375d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default function App() {
<Animated.View style={[style.settingsButton, { width: growAnim }]}>
{warning.display && (
<View style={style.warningContainer}>
<Text style={style.warning} numberOfLines={1}>
<Text style={style.warning} numberOfLines={3}>
{warning.message}
</Text>
</View>
Expand Down
8 changes: 5 additions & 3 deletions example/src/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default (streaming: boolean, android: boolean, warning: boolean) =>
minHeight: 50,
paddingVertical: 5,
paddingHorizontal: 15,
borderRadius: warning ? 60 : undefined,
borderRadius: warning ? 20 : undefined,
borderColor: '#FFFFFF',
borderWidth: warning ? 0.5 : undefined,
backgroundColor: warning ? '#DC3546' : undefined,
Expand All @@ -71,11 +71,13 @@ export default (streaming: boolean, android: boolean, warning: boolean) =>
right: 10,
},
warningContainer: {
marginRight: 20,
marginRight: 10,
borderRadius: 10,
},
warning: {
borderRadius: 10,
color: '#FFFFFF',
fontSize: 10,
fontSize: 12,
fontWeight: '700',
},
});
Expand Down

0 comments on commit f5375d6

Please sign in to comment.