cdslibrary 1.0.29 → 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.
package/components/CDSButton.jsx
CHANGED
|
@@ -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={{
|
|
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: "
|
|
24
|
+
justifyContent: "center",
|
|
25
25
|
alignItems: "center",
|
|
26
26
|
gap: 40,
|
|
27
|
-
|
|
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
|
|