cdslibrary 1.2.44 → 1.2.45

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.
@@ -1,16 +1,15 @@
1
1
  import React, { useEffect } from "react";
2
- import { StyleSheet, Text, TouchableOpacity, Dimensions } from "react-native";
3
- import Animated, {
4
- useSharedValue,
5
- useAnimatedStyle,
6
- withSpring,
7
- withTiming,
8
- runOnJS
2
+ import { StyleSheet, Text, TouchableOpacity, } from "react-native";
3
+ import Animated, {
4
+ useSharedValue,
5
+ useAnimatedStyle,
6
+ withSpring,
7
+ withTiming,
8
+ runOnJS
9
9
  } from "react-native-reanimated";
10
10
  import { GestureDetector, Gesture, } from "react-native-gesture-handler";
11
11
  import { useTheme } from "../context/CDSThemeContext";
12
12
 
13
- const { height: SCREEN_HEIGHT } = Dimensions.get("window");
14
13
 
15
14
  export const CDSSnackBar = ({ message, visible, onDismiss, action }) => {
16
15
  const { theme } = useTheme();
@@ -77,7 +76,7 @@ export const CDSSnackBar = ({ message, visible, onDismiss, action }) => {
77
76
  ]}
78
77
  >
79
78
  <Text style={[
80
- theme.typography.regular.sm,
79
+ theme.typography.regular.sm,
81
80
  { color: theme.text.neutral.contrast, flex: 1 }
82
81
  ]}>
83
82
  {message}
@@ -102,11 +101,13 @@ const styles = StyleSheet.create({
102
101
  alignSelf: 'center',
103
102
  width: '90%',
104
103
  maxWidth: 600,
105
- position: 'absolute',
104
+ position: 'fixed',
106
105
  flexDirection: 'row',
107
106
  alignItems: 'center',
108
107
  justifyContent: 'space-between',
109
- zIndex: 1000,
108
+ bottom: 40,
109
+ zIndex: 9999,
110
+ elevation: 10,
110
111
  },
111
112
  actionButton: {
112
113
  marginLeft: 16,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdslibrary",
3
3
  "license": "0BSD",
4
- "version": "1.2.44",
4
+ "version": "1.2.45",
5
5
  "main": "index.js",
6
6
  "author": "Nat Viramontes",
7
7
  "description": "A library of components for the CDS project",