native-pytech 1.0.152 → 1.0.153
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.
|
@@ -9,7 +9,7 @@ import { isLowTier } from '../../../../../libs/constants/consts';
|
|
|
9
9
|
import { BordersProvider, StoreProvider, TableProvider } from '../../context/table';
|
|
10
10
|
import OptionWrapper from '../OptionWrapper';
|
|
11
11
|
import Detail from '../Detail';
|
|
12
|
-
const Table = memo(({ children, title, renderDetail, colorThemeType = 'default', type = 'default', style, contentContainerStyle, allBorders = false, keys, }) => {
|
|
12
|
+
const Table = memo(({ children, title, renderDetail, colorThemeType = 'default', type = 'default', style, contentContainerStyle, allBorders = false, keys, disableLayoutAnimation }) => {
|
|
13
13
|
// ------------- Variables -------------
|
|
14
14
|
const { colorScheme } = useApp();
|
|
15
15
|
const Theme = colors.theme[colorScheme];
|
|
@@ -30,7 +30,7 @@ const Table = memo(({ children, title, renderDetail, colorThemeType = 'default',
|
|
|
30
30
|
},
|
|
31
31
|
borders: new Map()
|
|
32
32
|
});
|
|
33
|
-
const layoutAnimation = isLowTier ? LinearTransition.duration(500) : LinearTransition.easing(Easing.bezier(0.2, 0.2, 0, 1)).duration(600);
|
|
33
|
+
const layoutAnimation = disableLayoutAnimation ? undefined : (isLowTier ? LinearTransition.duration(500) : LinearTransition.easing(Easing.bezier(0.2, 0.2, 0, 1)).duration(600));
|
|
34
34
|
// ------------- useEffect -------------
|
|
35
35
|
Hooks.useEffectWithoutFirstRender(() => store.deleted.keys.set(keys), [keys]);
|
|
36
36
|
const value = useMemo(() => ({ colorThemeType, type, keys, allBorders }), [colorThemeType, type, keys, allBorders]);
|
|
@@ -48,6 +48,10 @@ type Props = {
|
|
|
48
48
|
Se muestran todos los bottom y el top del primero
|
|
49
49
|
*/
|
|
50
50
|
allBorders?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
Si le aplica la layoutAnimation.
|
|
53
|
+
*/
|
|
54
|
+
disableLayoutAnimation?: boolean;
|
|
51
55
|
};
|
|
52
56
|
export type Component = React.MemoExoticComponent<React.FC<Props>> & {
|
|
53
57
|
Option: typeof OptionWrapper;
|