@shoutem/ui 7.1.0-beta.5 → 7.1.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@ const ActionSheet = ({
12
12
  confirmOptions = undefined,
13
13
  style,
14
14
  onDismiss = undefined,
15
+ ...otherProps
15
16
  }) => {
16
17
  const actionSheetRef = useRef(null);
17
18
 
@@ -31,7 +32,13 @@ const ActionSheet = ({
31
32
  }, [active]);
32
33
 
33
34
  return (
34
- <ActionSheetNative gestureEnabled ref={actionSheetRef} onClose={onDismiss}>
35
+ <ActionSheetNative
36
+ gestureEnabled
37
+ ref={actionSheetRef}
38
+ onClose={onDismiss}
39
+ containerStyle={style.container}
40
+ {...otherProps}
41
+ >
35
42
  <View style={style.contentContainer}>
36
43
  {hasConfirmOptions && (
37
44
  <View style={style.segmentContainer}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoutem/ui",
3
- "version": "7.1.0-beta.5",
3
+ "version": "7.1.0-beta.6",
4
4
  "description": "Styleable set of components for React Native applications",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -41,7 +41,7 @@
41
41
  "react-native-vimeo-iframe": "^1.2.1",
42
42
  "react-native-webview": "11.23.0",
43
43
  "react-native-youtube-iframe": "2.2.2",
44
- "react-native-actions-sheet": "0.9.6",
44
+ "react-native-actions-sheet": "0.9.3",
45
45
  "stream": "0.0.2",
46
46
  "tinycolor2": "1.4.1"
47
47
  },
package/theme.js CHANGED
@@ -2714,13 +2714,7 @@ export default () => {
2714
2714
 
2715
2715
  'shoutem.ui.ActionSheet': {
2716
2716
  container: {
2717
- position: 'absolute',
2718
- top: 0,
2719
- bottom: 0,
2720
- left: 0,
2721
- right: 0,
2722
- flexDirection: 'column',
2723
- justifyContent: 'flex-end',
2717
+ backgroundColor: 'transparent',
2724
2718
  },
2725
2719
  contentContainer: {
2726
2720
  marginHorizontal: 8,
@@ -2744,10 +2738,11 @@ export default () => {
2744
2738
  text: {
2745
2739
  fontSize: 15,
2746
2740
  letterSpacing: 0.38,
2747
- color: '#000000',
2741
+ color: resolveVariable('primaryButtonText.color'),
2748
2742
  lineHeight: 24,
2749
2743
  },
2750
2744
  cancelText: {
2745
+ color: resolveVariable('errorText.color'),
2751
2746
  textAlign: 'center',
2752
2747
  fontWeight: resolveFontWeight('700'),
2753
2748
  },