native-pytech 1.0.152 → 1.0.155
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/dist/libs/editPage/src/components/Screen/index.js +1 -1
- package/dist/libs/login/src/Screen/Container.ios.js +1 -1
- package/dist/libs/login/src/Screen/Container.js +1 -1
- package/dist/libs/page/src/components/Page/index.android.js +1 -1
- package/dist/libs/page/src/components/Page/index.js +1 -1
- package/dist/libs/pickerPage/src/components/Content/index.js +1 -1
- package/dist/libs/providers/App/index.d.ts +1 -0
- package/dist/libs/providers/App/index.js +1 -0
- package/dist/libs/table/src/components/Table/index.js +2 -2
- package/dist/libs/table/src/components/Table/types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export default memo(({ children }) => {
|
|
|
6
6
|
const { colorScheme } = useApp();
|
|
7
7
|
const Theme = colors.theme[colorScheme];
|
|
8
8
|
return (<TouchableWithoutFeedback>
|
|
9
|
-
<ScrollView
|
|
9
|
+
<ScrollView contentContainerStyle={[styles.pagina, { backgroundColor: Theme.backgroundColor }]} automaticallyAdjustKeyboardInsets={true}>
|
|
10
10
|
{children}
|
|
11
11
|
</ScrollView>
|
|
12
12
|
</TouchableWithoutFeedback>);
|
|
@@ -8,7 +8,7 @@ export default memo(({ children }) => {
|
|
|
8
8
|
const Theme = colors.theme[colorScheme];
|
|
9
9
|
return (<TouchableWithoutFeedback>
|
|
10
10
|
<KeyboardAvoidingView behavior={'height'} style={{ flex: 1 }}>
|
|
11
|
-
<ScrollView contentContainerStyle={{ minHeight: height, flexGrow: 1 }} keyboardShouldPersistTaps='handled'
|
|
11
|
+
<ScrollView contentContainerStyle={{ minHeight: height, flexGrow: 1 }} keyboardShouldPersistTaps='handled'>
|
|
12
12
|
<View style={[styles.pagina, { backgroundColor: Theme.backgroundColor }]}>
|
|
13
13
|
{children}
|
|
14
14
|
</View>
|
|
@@ -4,7 +4,7 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
|
4
4
|
export default memo(({ children, style }) => {
|
|
5
5
|
const { bottom, top } = useSafeAreaInsets();
|
|
6
6
|
return (<KeyboardAvoidingView style={{ flex: 1 }} behavior={'height'} keyboardVerticalOffset={bottom + top}>
|
|
7
|
-
<ScrollView contentContainerStyle={[{ flexGrow: 1 }, style]}
|
|
7
|
+
<ScrollView contentContainerStyle={[{ flexGrow: 1 }, style]}>
|
|
8
8
|
{children}
|
|
9
9
|
</ScrollView>
|
|
10
10
|
</KeyboardAvoidingView>);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
2
|
import { ScrollView } from 'react-native';
|
|
3
3
|
export default memo(({ children, style }) => {
|
|
4
|
-
return (<ScrollView style={{ flex: 1 }} automaticallyAdjustKeyboardInsets={true} contentContainerStyle={style}
|
|
4
|
+
return (<ScrollView style={{ flex: 1 }} automaticallyAdjustKeyboardInsets={true} contentContainerStyle={style}>
|
|
5
5
|
{children}
|
|
6
6
|
</ScrollView>);
|
|
7
7
|
});
|
|
@@ -5,7 +5,7 @@ import { Provider } from '../../context/page';
|
|
|
5
5
|
export default memo(({ children, selected, onSelectionChange }) => {
|
|
6
6
|
const value = useMemo(() => ({ selected, onSelectionChange }), [selected]);
|
|
7
7
|
return (<Provider value={value}>
|
|
8
|
-
<ScrollView
|
|
8
|
+
<ScrollView>
|
|
9
9
|
<Table>
|
|
10
10
|
{children}
|
|
11
11
|
</Table>
|
|
@@ -8,6 +8,7 @@ import LoginSvg from '../../assets/images/login_letras.svg';
|
|
|
8
8
|
import LoginSvgDark from '../../assets/images/login_letras_dark.svg';
|
|
9
9
|
import Hooks from '../../../libs/constants/hooks';
|
|
10
10
|
import colors from "../constants";
|
|
11
|
+
import './styles.css';
|
|
11
12
|
const [Provider, useApp] = Utils.createCtx();
|
|
12
13
|
export { useApp };
|
|
13
14
|
export default memo(({ listStackNames = [], getBackgroundColor, getSession, renderItemLoading = ({ colorScheme }) => (colorScheme === 'dark' ?
|
|
@@ -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;
|