Fix to blurviews
This commit is contained in:
@@ -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%',
|
||||
|
||||
Reference in New Issue
Block a user