native-pytech 1.0.139 → 1.0.141
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,7 +1,6 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
|
-
import { colors } from 'native-pytech/components/gradient';
|
|
3
2
|
import { Pressable, StyleSheet } from 'react-native';
|
|
4
|
-
import Gradient from '
|
|
3
|
+
import Gradient, { colors } from '../../../../libs/components/Gradient';
|
|
5
4
|
export default memo(({ color, size, selectedColor, onSelectColor, }) => {
|
|
6
5
|
const isSelected = color === selectedColor;
|
|
7
6
|
return (<Pressable onPress={() => onSelectColor?.(color)} style={[
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { View, Text, Pressable, StyleSheet } from "react-native";
|
|
2
2
|
import { memo } from 'react';
|
|
3
|
-
import Gradient from "
|
|
4
|
-
import Colors from "
|
|
5
|
-
import { useApp } from "
|
|
3
|
+
import Gradient from "../../../../libs/components/Gradient";
|
|
4
|
+
import Colors from "../../../../libs/constants/colors";
|
|
5
|
+
import { useApp } from "../../../../libs/providers/App";
|
|
6
6
|
export default memo(({ title, subtitle, gradientProps, buttonProps }) => {
|
|
7
7
|
const { colorScheme } = useApp();
|
|
8
8
|
const spacing = gradientProps?.type === 'extraLarge' ? 10 : 20;
|