Skip to content

Commit

Permalink
Update SafeAreaContext.tsx (#461)
Browse files Browse the repository at this point in the history
remove deprecated deprecated API. `StyleSheet.compose(a, b) is deprecated; use array syntax, i.e., [a,b].`
  • Loading branch information
EvanBacon committed Dec 13, 2023
1 parent 0477394 commit e2c8027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SafeAreaContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function SafeAreaProvider({

return (
<NativeSafeAreaProvider
style={StyleSheet.compose(styles.fill, style)}
style={[styles.fill, style]}
onInsetsChange={onInsetsChange}
{...others}
>
Expand Down

0 comments on commit e2c8027

Please sign in to comment.