react-native-drag-sort-list 1.0.0 → 1.0.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/README.md +14 -14
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -17,28 +17,28 @@
|
|
|
17
17
|
|
|
18
18
|
## 安装
|
|
19
19
|
|
|
20
|
-
###
|
|
21
|
-
|
|
22
|
-
本组件依赖 `react-native-gesture-handler` `lodash`,请先安装:
|
|
20
|
+
### 安装包
|
|
23
21
|
|
|
24
22
|
```bash
|
|
25
|
-
npm install react-native-
|
|
26
|
-
npm install lodash
|
|
23
|
+
npm install react-native-drag-sort-list
|
|
27
24
|
# 或
|
|
28
|
-
yarn add react-native-
|
|
29
|
-
yarn add lodash
|
|
25
|
+
yarn add react-native-drag-sort-list
|
|
30
26
|
```
|
|
31
27
|
|
|
32
|
-
###
|
|
28
|
+
### 前置依赖
|
|
29
|
+
|
|
30
|
+
本组件依赖 `react-native-gesture-handler` 和 `lodash`,这些依赖会自动安装。如果遇到问题,可以手动安装:
|
|
33
31
|
|
|
34
32
|
```bash
|
|
35
|
-
|
|
33
|
+
npm install react-native-gesture-handler lodash
|
|
34
|
+
# 或
|
|
35
|
+
yarn add react-native-gesture-handler lodash
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
###
|
|
38
|
+
### iOS 安装
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
|
|
41
|
+
cd ios && pod install && cd ..
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## 使用方法
|
|
@@ -48,7 +48,7 @@ cd ios && pod install && cd ..
|
|
|
48
48
|
```javascript
|
|
49
49
|
import React from 'react';
|
|
50
50
|
import { Dimensions, View, Text } from 'react-native';
|
|
51
|
-
import DragSortView from '
|
|
51
|
+
import DragSortView from 'react-native-drag-sort-list';
|
|
52
52
|
|
|
53
53
|
const windowWidth = Dimensions.get('window').width;
|
|
54
54
|
|
|
@@ -91,7 +91,7 @@ const MyComponent = () => {
|
|
|
91
91
|
```javascript
|
|
92
92
|
import React from 'react';
|
|
93
93
|
import { Dimensions, View, Text } from 'react-native';
|
|
94
|
-
import DragSortView from '
|
|
94
|
+
import DragSortView from 'react-native-drag-sort-list';
|
|
95
95
|
|
|
96
96
|
const windowWidth = Dimensions.get('window').width;
|
|
97
97
|
|
|
@@ -136,7 +136,7 @@ const MyComponent = () => {
|
|
|
136
136
|
```javascript
|
|
137
137
|
import React, { useRef } from 'react';
|
|
138
138
|
import { Dimensions, ScrollView, Text, View } from 'react-native';
|
|
139
|
-
import DragSortView from '
|
|
139
|
+
import DragSortView from 'react-native-drag-sort-list';
|
|
140
140
|
|
|
141
141
|
const windowWidth = Dimensions.get('window').width;
|
|
142
142
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-drag-sort-list",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A powerful React Native drag and sort component library with support for single and multi-column layouts",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "https://github.com/
|
|
24
|
+
"url": "https://github.com/Onedayago/react-native-drag-sort.git"
|
|
25
25
|
},
|
|
26
26
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/
|
|
27
|
+
"url": "https://github.com/Onedayago/react-native-drag-sort/issues"
|
|
28
28
|
},
|
|
29
|
-
"homepage": "https://github.com/
|
|
29
|
+
"homepage": "https://github.com/Onedayago/react-native-drag-sort#readme",
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": ">=16.8.0",
|
|
32
32
|
"react-native": ">=0.60.0",
|