Fix to blurviews

This commit is contained in:
Paul Frazee 2023-01-26 18:15:43 -06:00
parent d04a6d7539
commit 20ccb03427
6 changed files with 55 additions and 18 deletions

View file

@ -19,10 +19,10 @@ import {
ScrollView as RNScrollView,
ScrollViewProps,
StyleSheet,
StyleProp,
View,
ViewProps,
} from 'react-native'
import {addStyle} from '../../lib/addStyle'
export function CenteredView({
style,
@ -50,16 +50,6 @@ export function ScrollView({
)
}
function addStyle<T>(
base: StyleProp<T>,
addedStyle: StyleProp<T>,
): StyleProp<T> {
if (Array.isArray(base)) {
return base.concat([addedStyle])
}
return [base, addedStyle]
}
const styles = StyleSheet.create({
container: {
width: '100%',