Fix to blurviews
This commit is contained in:
parent
d04a6d7539
commit
20ccb03427
6 changed files with 55 additions and 18 deletions
|
@ -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%',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue