@hero-design/rn 8.63.3 → 8.63.4-alpha.0
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/es/index.js +34 -19
- package/eslint.config.js +42 -0
- package/lib/index.js +34 -19
- package/package.json +7 -3
- package/rollup.config.js +13 -0
- package/sonar-project.properties +1 -1
- package/src/components/Tabs/ScrollableTabs.tsx +10 -16
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +32 -0
- package/src/components/Tabs/__tests__/index.spec.tsx +32 -0
- package/src/components/Tabs/index.tsx +12 -8
- package/src/components/Tabs/useHandlePageScroll.tsx +32 -0
- package/stats/8.63.3/rn-stats.html +4844 -0
- package/types/components/Tabs/index.d.ts +1 -1
- package/types/components/Tabs/useHandlePageScroll.d.ts +8 -0
- package/types/testHelpers/utils.d.ts +1 -0
- package/.eslintrc.js +0 -13
- package/.turbo/turbo-build.log +0 -5
- package/src/theme/components/.eslintrc.json +0 -10
|
@@ -36,7 +36,7 @@ export interface TabsProps extends ViewProps {
|
|
|
36
36
|
*/
|
|
37
37
|
barStyle?: StyleProp<ViewStyle>;
|
|
38
38
|
/**
|
|
39
|
-
* Whether inactive screen should be removed and unmounted in
|
|
39
|
+
* Whether inactive screen should be removed and unmounted in
|
|
40
40
|
* Defaults value is `false`.
|
|
41
41
|
*/
|
|
42
42
|
lazy?: boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NativeSyntheticEvent } from 'react-native';
|
|
2
|
+
declare const useHandlePageScroll: () => {
|
|
3
|
+
onPageScrollStateChanged: (e: NativeSyntheticEvent<Readonly<{
|
|
4
|
+
pageScrollState: 'idle' | 'dragging' | 'settling';
|
|
5
|
+
}>>) => void;
|
|
6
|
+
hasScrolled: import("react").MutableRefObject<boolean>;
|
|
7
|
+
};
|
|
8
|
+
export default useHandlePageScroll;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const setOrientation: (orientation: 'portrait' | 'landscape') => void;
|
package/.eslintrc.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
parserOptions: {
|
|
4
|
-
tsconfigRootDir: __dirname,
|
|
5
|
-
project: ['./tsconfig.json'],
|
|
6
|
-
},
|
|
7
|
-
extends: ['hd', 'plugin:@hero-design/recommendedRn'],
|
|
8
|
-
plugins: ['@hero-design', 'import'],
|
|
9
|
-
rules: {
|
|
10
|
-
'no-underscore-dangle': [2, { allow: ['__hd__'] }],
|
|
11
|
-
'import/no-cycle': 2,
|
|
12
|
-
},
|
|
13
|
-
};
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
[36m
|
|
2
|
-
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
3
|
-
[1m[33m(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
4
|
-
[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
5
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m 3s[22m[39m
|