@react-native-ohos/slider 5.0.1-rc.1 → 5.1.2-rc.2
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/CHANGELOG.md +188 -0
- package/COMMITTERS.md +6 -0
- package/OAT.xml +73 -0
- package/README.OpenSource +1 -1
- package/README.md +1 -1
- package/babel.config.json +3 -0
- package/dist/RNCSliderNativeComponent.js +1 -1
- package/dist/Slider.js +1 -1
- package/dist/components/StepNumber.js +1 -1
- package/dist/components/StepsIndicator.js +1 -1
- package/dist/components/TrackMark.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/example/.eslintrc +19 -0
- package/example/.node-version +6 -0
- package/example/.prettierrc.js +7 -0
- package/example/.watchmanconfig +6 -0
- package/example/app.json +4 -0
- package/example/babel.config.js +9 -0
- package/example/contexts.ts +9 -0
- package/example/harmony/AppScope/app.json5 +10 -0
- package/example/harmony/AppScope/resources/base/element/string.json +8 -0
- package/example/harmony/AppScope/resources/base/media/app_icon.png +0 -0
- package/example/harmony/build-profile.template.json5 +36 -0
- package/example/harmony/codelinter.json +32 -0
- package/example/harmony/entry/build-profile.json5 +22 -0
- package/example/harmony/entry/hvigorfile.ts +8 -0
- package/example/harmony/entry/oh-package.json5 +11 -0
- package/example/harmony/entry/src/main/cpp/CMakeLists.txt +41 -0
- package/example/harmony/entry/src/main/cpp/PackageProvider.cpp +17 -0
- package/example/harmony/entry/src/main/ets/RNPackagesFactory.ets +13 -0
- package/example/harmony/entry/src/main/ets/assets/fonts/Pacifico-Regular.ttf +0 -0
- package/example/harmony/entry/src/main/ets/assets/fonts/StintUltraCondensed-Regular.ttf +0 -0
- package/example/harmony/entry/src/main/ets/entryability/EntryAbility.ets +27 -0
- package/example/harmony/entry/src/main/ets/pages/Index.ets +125 -0
- package/example/harmony/entry/src/main/ets/pages/SurfaceDeadlockTest.ets +135 -0
- package/example/harmony/entry/src/main/ets/pages/TouchDisplayer.ets +44 -0
- package/example/harmony/entry/src/main/module.json5 +52 -0
- package/example/harmony/entry/src/main/resources/base/element/color.json +8 -0
- package/example/harmony/entry/src/main/resources/base/element/string.json +16 -0
- package/example/harmony/entry/src/main/resources/base/media/icon.png +0 -0
- package/example/harmony/entry/src/main/resources/base/profile/main_pages.json +5 -0
- package/example/harmony/entry/src/main/resources/rawfile/1.txt +1 -0
- package/example/harmony/format.ps1 +18 -0
- package/example/harmony/hvigor/hvigor-config.json5 +21 -0
- package/example/harmony/hvigorfile.ts +9 -0
- package/example/harmony/oh-package.json5 +12 -0
- package/example/index.js +11 -0
- package/example/jest.config.js +11 -0
- package/example/metro.config.js +30 -0
- package/example/package.json +58 -0
- package/example/react-native.config.js +11 -0
- package/example/scripts/create-build-profile.js +46 -0
- package/example/src/index.tsx +22 -0
- package/example/tsconfig.json +20 -0
- package/harmony/slider/oh-package.json5 +1 -1
- package/harmony/slider.har +0 -0
- package/package.json +16 -22
- package/react-native.config.js +11 -0
- package/src/RNCSliderNativeComponent.ts +7 -3
- package/src/Slider.tsx +10 -4
- package/src/components/StepNumber.tsx +6 -0
- package/src/components/StepsIndicator.tsx +6 -0
- package/src/components/TrackMark.tsx +12 -3
- package/src/index.ts +6 -0
- package/src/utils/constants.ts +6 -0
- package/src/utils/styles.ts +7 -1
- package/tsconfig.json +23 -0
- package/typings/index.d.ts +6 -0
- package/harmony/slider/.idea/misc.xml +0 -6
- package/harmony/slider/.idea/modules.xml +0 -8
- package/harmony/slider/.idea/slider.iml +0 -8
- package/harmony/slider/README.OpenSource +0 -11
- package/harmony/slider/oh-package-lock.json5 +0 -18
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-harmony-tester",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"i": "cd ../ && npm i && npm run pack && cd ./example && npm i",
|
|
7
|
+
"reStart": "npm run install:pkg && npm run codegen && hdc rport tcp:8081 tcp:8081 && react-native start",
|
|
8
|
+
"start": "hdc rport tcp:8081 tcp:8081 && react-native start",
|
|
9
|
+
"codegen": "react-native codegen-harmony --rnoh-module-path ./harmony/entry/oh_modules/@rnoh/react-native-openharmony",
|
|
10
|
+
"pack:pkg": "cd ../ && npm pack && cd ./example",
|
|
11
|
+
"install:pkg": "npm uninstall @react-native-ohos/slider && npm run pack:pkg && npm i @react-native-ohos/slider@file:../react-native-ohos-slider-5.0.1-rc.1.tgz",
|
|
12
|
+
"dev": "npm run codegen && react-native bundle-harmony --dev --minify=false",
|
|
13
|
+
"prod": "npm run codegen && react-native bundle-harmony --dev=false --minify=true",
|
|
14
|
+
"postinstall": "node ./scripts/create-build-profile",
|
|
15
|
+
"fast:pkg": "cd ../ && npm i --legacy-peer-deps && npm pack && cd ./example && npm i && npm run dev"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@react-native-ohos/slider": "file:../react-native-ohos-slider-5.0.1-rc.1.tgz",
|
|
19
|
+
"react": "18.3.1",
|
|
20
|
+
"react-native": "0.77.1",
|
|
21
|
+
"react-native-harmony": "file:../packages/rnoh-react-native-harmony-0.77.10.tgz"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@babel/core": "^7.25.2",
|
|
25
|
+
"@babel/preset-env": "^7.25.3",
|
|
26
|
+
"@babel/runtime": "^7.25.0",
|
|
27
|
+
"@react-native-community/cli": "15.0.1",
|
|
28
|
+
"@react-native-community/cli-platform-android": "15.0.1",
|
|
29
|
+
"@react-native-community/cli-platform-ios": "15.0.1",
|
|
30
|
+
"@react-native-community/eslint-config": "^3.2.0",
|
|
31
|
+
"@react-native/babel-preset": "0.77.1",
|
|
32
|
+
"@react-native/eslint-config": "0.77.1",
|
|
33
|
+
"@react-native/metro-config": "^0.77.1",
|
|
34
|
+
"@react-native/typescript-config": "0.77.1",
|
|
35
|
+
"@rnoh/react-native-harmony-cli": "file:../packages/rnoh-react-native-harmony-cli-0.77.10.tgz",
|
|
36
|
+
"@tsconfig/react-native": "^3.0.0",
|
|
37
|
+
"@types/d3-scale-chromatic": "^3.0.0",
|
|
38
|
+
"@types/jest": "^29.5.13",
|
|
39
|
+
"@types/react": "^18.2.6",
|
|
40
|
+
"@types/react-test-renderer": "^18.0.0",
|
|
41
|
+
"babel-jest": "^29.6.3",
|
|
42
|
+
"eslint": "^8.19.0",
|
|
43
|
+
"jest": "^29.7.0",
|
|
44
|
+
"metro-react-native-babel-preset": "0.76.8",
|
|
45
|
+
"prettier": "2.8.8",
|
|
46
|
+
"react-test-renderer": "18.3.1",
|
|
47
|
+
"typescript": "5.5.4"
|
|
48
|
+
},
|
|
49
|
+
"overrides": {
|
|
50
|
+
"@react-native-community/cli": "15.0.1"
|
|
51
|
+
},
|
|
52
|
+
"resolutions": {
|
|
53
|
+
"@react-native-community/cli": "15.0.1"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=18"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const fs = require('fs');
|
|
9
|
+
const JSON5 = require('json5');
|
|
10
|
+
const path = require('path');
|
|
11
|
+
|
|
12
|
+
const templatePath = path.join(
|
|
13
|
+
__dirname,
|
|
14
|
+
'..',
|
|
15
|
+
'harmony',
|
|
16
|
+
'build-profile.template.json5',
|
|
17
|
+
);
|
|
18
|
+
const existingProfilePath = path.join(
|
|
19
|
+
__dirname,
|
|
20
|
+
'..',
|
|
21
|
+
'harmony',
|
|
22
|
+
'build-profile.json5',
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
if (fs.existsSync(existingProfilePath)) {
|
|
26
|
+
let existingProfile = JSON5.parse(
|
|
27
|
+
fs.readFileSync(existingProfilePath, 'utf-8'),
|
|
28
|
+
);
|
|
29
|
+
let template = JSON5.parse(fs.readFileSync(templatePath, 'utf-8'));
|
|
30
|
+
let signingConfigs =
|
|
31
|
+
existingProfile.app && existingProfile.app.signingConfigs;
|
|
32
|
+
|
|
33
|
+
existingProfile = {...template};
|
|
34
|
+
|
|
35
|
+
if (signingConfigs) {
|
|
36
|
+
existingProfile.app.signingConfigs = signingConfigs;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
fs.writeFileSync(
|
|
40
|
+
existingProfilePath,
|
|
41
|
+
JSON5.stringify(existingProfile, null, 2),
|
|
42
|
+
);
|
|
43
|
+
} else {
|
|
44
|
+
// File doesn't exist, create a copy from the template
|
|
45
|
+
fs.copyFileSync(templatePath, existingProfilePath);
|
|
46
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import Slider from "@react-native-community/slider"
|
|
8
|
+
import { View } from 'react-native'
|
|
9
|
+
|
|
10
|
+
export default function SliderExample() {
|
|
11
|
+
return (
|
|
12
|
+
<View style={{ backgroundColor: 'red', width: 200, height: 100 ,margin:100 }}>
|
|
13
|
+
<Slider
|
|
14
|
+
style={{ width: 200, height: 40 }}
|
|
15
|
+
minimumValue={0}
|
|
16
|
+
maximumValue={1}
|
|
17
|
+
minimumTrackTintColor="#FFFFFF"
|
|
18
|
+
maximumTrackTintColor="#000000"
|
|
19
|
+
/>
|
|
20
|
+
</View>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
{
|
|
8
|
+
"extends": "@react-native/typescript-config/tsconfig.json",
|
|
9
|
+
"compilerOptions": {
|
|
10
|
+
"jsx": "react-native",
|
|
11
|
+
"paths": {
|
|
12
|
+
"react-native": [
|
|
13
|
+
"./node_modules/react-native-harmony"
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
"exclude": [
|
|
18
|
+
"harmony"
|
|
19
|
+
]
|
|
20
|
+
}
|
package/harmony/slider.har
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-ohos/slider",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.2-rc.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "react-native-community",
|
|
6
|
-
"homepage": "https://
|
|
6
|
+
"homepage": "https://gitcode.com/openharmony-sig/rntpc_react-native-slider/tree/br_rnoh0.77#readme",
|
|
7
7
|
"description": "React Native component used to select a single value from a range of values.",
|
|
8
8
|
"harmony": {
|
|
9
9
|
"alias": "@react-native-community/slider"
|
|
10
10
|
},
|
|
11
|
-
"files": [
|
|
12
|
-
"dist",
|
|
13
|
-
"src",
|
|
14
|
-
"typings",
|
|
15
|
-
"harmony"
|
|
16
|
-
],
|
|
17
11
|
"publishConfig": {
|
|
18
12
|
"registry": "https://npm.pkg.github.com"
|
|
19
13
|
},
|
|
@@ -30,7 +24,7 @@
|
|
|
30
24
|
"test": "npx jest src"
|
|
31
25
|
},
|
|
32
26
|
"dependencies": {
|
|
33
|
-
"@react-native-community/slider": "5.
|
|
27
|
+
"@react-native-community/slider": "5.1.1"
|
|
34
28
|
},
|
|
35
29
|
"devDependencies": {
|
|
36
30
|
"@babel/cli": "^7.8.4",
|
|
@@ -38,17 +32,17 @@
|
|
|
38
32
|
"@babel/preset-flow": "^7.9.0",
|
|
39
33
|
"@babel/preset-typescript": "^7.18.6",
|
|
40
34
|
"@babel/runtime": "^7.25.0",
|
|
41
|
-
"@react-native-community/cli": "
|
|
42
|
-
"@react-native-community/cli-platform-android": "
|
|
43
|
-
"@react-native-community/cli-platform-ios": "
|
|
35
|
+
"@react-native-community/cli": "^20.0.2",
|
|
36
|
+
"@react-native-community/cli-platform-android": "^20.0.2",
|
|
37
|
+
"@react-native-community/cli-platform-ios": "^20.0.2",
|
|
44
38
|
"@react-native-community/eslint-config": "^3.2.0",
|
|
45
|
-
"@react-native/babel-preset": "0.
|
|
46
|
-
"@react-native/eslint-config": "0.
|
|
47
|
-
"@react-native/metro-config": "0.
|
|
48
|
-
"@react-native/typescript-config": "0.
|
|
39
|
+
"@react-native/babel-preset": "^0.81.1",
|
|
40
|
+
"@react-native/eslint-config": "^0.81.1",
|
|
41
|
+
"@react-native/metro-config": "^0.81.1",
|
|
42
|
+
"@react-native/typescript-config": "^0.81.1",
|
|
49
43
|
"@types/jest": "^28.1.8",
|
|
50
|
-
"@types/react": "^
|
|
51
|
-
"@types/react-test-renderer": "^
|
|
44
|
+
"@types/react": "^19.2.0",
|
|
45
|
+
"@types/react-test-renderer": "^19.1.0",
|
|
52
46
|
"babel-jest": "^29.7.0",
|
|
53
47
|
"babel-plugin-module-resolver": "5.0.0",
|
|
54
48
|
"copyfiles": "^2.4.1",
|
|
@@ -59,15 +53,15 @@
|
|
|
59
53
|
"flow-bin": "^0.163.0",
|
|
60
54
|
"jest": "^29.5.0",
|
|
61
55
|
"prettier": "2.8.8",
|
|
62
|
-
"react": "^
|
|
63
|
-
"react-native": "^0.
|
|
56
|
+
"react": "^19.2.0",
|
|
57
|
+
"react-native": "^0.81.4",
|
|
64
58
|
"react-native-windows": "^0.76.2",
|
|
65
|
-
"react-test-renderer": "^
|
|
59
|
+
"react-test-renderer": "^19.2.0",
|
|
66
60
|
"typescript": "^5.0.4"
|
|
67
61
|
},
|
|
68
62
|
"repository": {
|
|
69
63
|
"type": "git",
|
|
70
|
-
"url": "https://
|
|
64
|
+
"url": "https://gitcode.com/openharmony-sig/rntpc_react-native-slider.git"
|
|
71
65
|
},
|
|
72
66
|
"jest": {
|
|
73
67
|
"preset": "react-native",
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import type {ColorValue, HostComponent, ViewProps} from 'react-native';
|
|
2
|
-
import codegenNativeComponent from 'react-native
|
|
3
|
-
//@ts-ignore
|
|
4
|
-
import type {ImageSource} from 'react-native/Libraries/Image/ImageSource';
|
|
8
|
+
import {ImageSource, codegenNativeComponent} from 'react-native';
|
|
5
9
|
import type {
|
|
6
10
|
Float,
|
|
7
11
|
WithDefault,
|
package/src/Slider.tsx
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import React, {useEffect, useState} from 'react';
|
|
2
8
|
import {
|
|
3
9
|
Image,
|
|
@@ -9,10 +15,10 @@ import {
|
|
|
9
15
|
NativeSyntheticEvent,
|
|
10
16
|
StyleProp,
|
|
11
17
|
View,
|
|
18
|
+
ImageSource,
|
|
19
|
+
ImageSourcePropType,
|
|
12
20
|
} from 'react-native';
|
|
13
21
|
import RCTSliderNativeComponent from './index';
|
|
14
|
-
//@ts-ignore
|
|
15
|
-
import type {ImageSource} from 'react-native/Libraries/Image/ImageSource';
|
|
16
22
|
|
|
17
23
|
import type {FC, Ref} from 'react';
|
|
18
24
|
import {MarkerProps} from './components/TrackMark';
|
|
@@ -317,9 +323,9 @@ const SliderComponent = (
|
|
|
317
323
|
thumbImage={
|
|
318
324
|
Platform.OS === 'web'
|
|
319
325
|
? props.thumbImage
|
|
320
|
-
: props.StepMarker
|
|
326
|
+
: props.StepMarker || !props.thumbImage
|
|
321
327
|
? undefined
|
|
322
|
-
: Image.resolveAssetSource(props.thumbImage)
|
|
328
|
+
: Image.resolveAssetSource(props.thumbImage as ImageSourcePropType)
|
|
323
329
|
}
|
|
324
330
|
ref={forwardedRef}
|
|
325
331
|
style={[
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import React from 'react';
|
|
2
8
|
import {StyleProp, Text, TextStyle, View} from 'react-native';
|
|
3
9
|
import {styles} from '../utils/styles';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import React, {FC, Fragment, useCallback, useMemo} from 'react';
|
|
2
8
|
import {View} from 'react-native';
|
|
3
9
|
import {StepNumber} from './StepNumber';
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import React, {FC} from 'react';
|
|
2
|
-
import {Image,
|
|
8
|
+
import {Image, ImageSource, ImageSourcePropType, View} from 'react-native';
|
|
3
9
|
import {styles} from '../utils/styles';
|
|
4
10
|
|
|
5
11
|
export type MarkerProps = {
|
|
@@ -13,7 +19,7 @@ export type MarkerProps = {
|
|
|
13
19
|
export type TrackMarksProps = {
|
|
14
20
|
isTrue: boolean;
|
|
15
21
|
index: number;
|
|
16
|
-
thumbImage?:
|
|
22
|
+
thumbImage?: ImageSource;
|
|
17
23
|
StepMarker?: FC<MarkerProps>;
|
|
18
24
|
currentValue: number;
|
|
19
25
|
min: number;
|
|
@@ -42,7 +48,10 @@ export const SliderTrackMark = ({
|
|
|
42
48
|
) : null}
|
|
43
49
|
{thumbImage && isTrue ? (
|
|
44
50
|
<View style={styles.thumbImageContainer}>
|
|
45
|
-
<Image
|
|
51
|
+
<Image
|
|
52
|
+
source={thumbImage as ImageSourcePropType}
|
|
53
|
+
style={styles.thumbImage}
|
|
54
|
+
/>
|
|
46
55
|
</View>
|
|
47
56
|
) : null}
|
|
48
57
|
</View>
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
const RNCSlider = require('./RNCSliderNativeComponent').default;
|
|
2
8
|
|
|
3
9
|
export default RNCSlider;
|
package/src/utils/constants.ts
CHANGED
package/src/utils/styles.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import {Platform, StyleSheet} from 'react-native';
|
|
2
8
|
|
|
3
9
|
export const styles = StyleSheet.create({
|
|
@@ -15,7 +21,7 @@ export const styles = StyleSheet.create({
|
|
|
15
21
|
flex: 1,
|
|
16
22
|
flexDirection: 'row',
|
|
17
23
|
justifyContent: 'space-between',
|
|
18
|
-
top: Platform.OS === 'ios' ? 10 : 0,
|
|
24
|
+
top: Platform.OS === 'ios' || Platform.OS === 'harmony' ? 10 : 0,
|
|
19
25
|
zIndex: 2,
|
|
20
26
|
},
|
|
21
27
|
trackMarkContainer: {
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": ["./src/**/*"],
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"jsx": "react",
|
|
6
|
+
|
|
7
|
+
/* Language and Environment */
|
|
8
|
+
"target": "ESNext",
|
|
9
|
+
"lib": ["ESNext", "dom"],
|
|
10
|
+
|
|
11
|
+
/* Modules */
|
|
12
|
+
"module": "NodeNext",
|
|
13
|
+
"moduleResolution": "NodeNext",
|
|
14
|
+
|
|
15
|
+
/* Interop Constraints */
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
|
|
19
|
+
/* Type Checking */
|
|
20
|
+
"strict": true,
|
|
21
|
+
"skipLibCheck": true
|
|
22
|
+
}
|
|
23
|
+
}
|
package/typings/index.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
import * as React from 'react';
|
|
2
8
|
import { FC } from 'react';
|
|
3
9
|
import * as ReactNative from 'react-native';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="EMPTY_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
</module>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"Name": "react-native-slider",
|
|
4
|
-
"License": "MIT License",
|
|
5
|
-
"License File":"https://github.com/callstack/react-native-slider/blob/main/LICENSE.md",
|
|
6
|
-
"Version Number": "4.4.3-0.1.3",
|
|
7
|
-
"Owner" : ""
|
|
8
|
-
"Upstream URL": "https://github.com/callstack/react-native-slider",
|
|
9
|
-
"Description": "React Native component used to select a single value from a range of values."
|
|
10
|
-
}
|
|
11
|
-
]
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta": {
|
|
3
|
-
"stableOrder": true
|
|
4
|
-
},
|
|
5
|
-
"lockfileVersion": 3,
|
|
6
|
-
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
|
|
7
|
-
"specifiers": {
|
|
8
|
-
"@rnoh/react-native-openharmony@../react_native_openharmony.har": "@rnoh/react-native-openharmony@../react_native_openharmony.har"
|
|
9
|
-
},
|
|
10
|
-
"packages": {
|
|
11
|
-
"@rnoh/react-native-openharmony@../react_native_openharmony.har": {
|
|
12
|
-
"name": "@rnoh/react-native-openharmony",
|
|
13
|
-
"version": "0.77.10",
|
|
14
|
-
"resolved": "../react_native_openharmony.har",
|
|
15
|
-
"registryType": "local"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|