cdslibrary 1.0.30 → 1.0.31

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.
@@ -90,7 +90,7 @@ const styles = StyleSheet.create({
90
90
  justifyContent: "center",
91
91
  paddingVertical: 12,
92
92
  paddingHorizontal: 24,
93
- borderRadius: 100,
93
+ borderRadius: 1,
94
94
  gap: 8,
95
95
  },
96
96
  });
@@ -10,7 +10,7 @@ import { Paginator } from "./Paginator";
10
10
 
11
11
  export const Onboarding = () => {
12
12
  const [parentWidth, setParentWidth] = useState(0);
13
-
13
+ const {theme} = useTheme()
14
14
  // Función onLayout para obtener las dimensiones del contenedor padre
15
15
  const handleLayout = (event) => {
16
16
  const { width } = event.nativeEvent.layout;
@@ -34,7 +34,7 @@ export const Onboarding = () => {
34
34
 
35
35
 
36
36
  return (
37
- <View style={Styles.container} onLayout={handleLayout}>
37
+ <View style={[Styles.container, {backgroundColor: theme.surface.background.default}]} onLayout={handleLayout}>
38
38
  <FlatList data={slides} renderItem={({ item }) => <OnboardingItem item={item} parentWidth={parentWidth} />}
39
39
  horizontal
40
40
  showsHorizontalScrollIndicator={false}
@@ -46,9 +46,9 @@ export const Onboarding = () => {
46
46
  viewabilityConfig={viewConfig}
47
47
  scrollEventThrottle={32}
48
48
  ref={slidesRef}
49
- style={{ width: '100%' }}
49
+ style={{flex: 0.7,}}
50
50
  />
51
- <Paginator width={parentWidth} data={slides} scrollX={scrollX}/>
51
+ {/* <Paginator width={parentWidth} data={slides} scrollX={scrollX}/> */}
52
52
  </View>
53
53
  )
54
54
  }
@@ -58,6 +58,7 @@ export const Onboarding = () => {
58
58
  const Styles = StyleSheet.create({
59
59
  container: {
60
60
  flex: 1,
61
+ height: 500,
61
62
  justifyContent: 'center',
62
63
  width: '100%',
63
64
  }
@@ -21,15 +21,15 @@ export const OnboardingItem = ({ item, parentWidth }) => {
21
21
  const styles = StyleSheet.create({
22
22
  container: {
23
23
  flex: 1,
24
- justifyContent: "flex-end",
24
+ justifyContent: "center",
25
25
  alignItems: "center",
26
26
  gap: 40,
27
- backgroundColor: 'red',
27
+ flexDirection: 'row',
28
+ flexWrap: 'wrap'
28
29
 
29
30
  },
30
31
 
31
32
  textContainer: {
32
- width: '100%',
33
33
  gap: 16,
34
34
  },
35
35
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdslibrary",
3
3
  "license": "0BSD",
4
- "version": "1.0.30",
4
+ "version": "1.0.31",
5
5
  "main": "index.js",
6
6
  "author": "Nat Viramontes",
7
7
  "description": "A library of components for the CDS project",