diff --git a/lib/ActionSheetCustom.js b/lib/ActionSheetCustom.js index 948bb39..26bafda 100644 --- a/lib/ActionSheetCustom.js +++ b/lib/ActionSheetCustom.js @@ -2,7 +2,8 @@ import React from 'react' import { Text, View, Dimensions, Modal, TouchableHighlight, Animated, ScrollView, Easing, SafeAreaView, LayoutChangeEvent, Appearance } from 'react-native' import * as utils from './utils' import styles2 from './styles' -import { BlurView } from '@react-native-community/blur' +import BlurView from './BlurView' +import { Platform } from 'react-native' const WARN_COLOR = '#FF3B30' const MAX_HEIGHT = Dimensions.get('window').height * 0.7 @@ -177,12 +178,30 @@ class ActionSheet extends React.Component { /> - + {this._renderTitle()} {this._renderMessage()} {this._renderOptions()} diff --git a/lib/BlurView.ios.js b/lib/BlurView.ios.js new file mode 100644 index 0000000..8131fc9 --- /dev/null +++ b/lib/BlurView.ios.js @@ -0,0 +1,4 @@ + +import { BlurView } from '@react-native-community/blur' + +export default BlurView diff --git a/lib/BlurView.js b/lib/BlurView.js new file mode 100644 index 0000000..0334f2d --- /dev/null +++ b/lib/BlurView.js @@ -0,0 +1,4 @@ +import { View } from "react-native" + +const BlurView = View +export default BlurView; diff --git a/lib/styles.js b/lib/styles.js index 02b45f1..a836bfb 100644 --- a/lib/styles.js +++ b/lib/styles.js @@ -19,11 +19,15 @@ export default { alignSelf: 'flex-end', backgroundColor: '#e5e5e5' }, + bodyDark: { + flex: 1, + alignSelf: 'flex-end', + backgroundColor: '#404040', + }, bodyIos: { flex: 1, alignSelf: 'flex-end', padding: 8, - paddingBottom: 0, }, titleBox: { paddingTop: 15,