Skip to content

Commit 4b2a70a

Browse files
committed
docs(doc): change the doc
1 parent 6f61b16 commit 4b2a70a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ npm install react-native-picker-xg --save
5252

5353
###Data structure
5454
Basicly, you can realize as more as wheels as you like if you follow the data structure we set for you. However, take the size of the phone into consideration, we do not recommend more than 4 wheels.
55-
* For the basic pickers: It's an array, the count of the wheel depends on how many objects you have. And the content of the wheel depends on the name of one objects of the outer objects.
55+
* For the basic pickers: It's an array, the count of the wheel depends on how many objects you have. And the content of the wheel depends on the name of one objects of the outer objects.
56+
By default we export the basic wheel picker, if you want to use the cascade wheel Picker you can do as follows:
5657
```
5758
let wheel3 = [
5859
{
@@ -127,7 +128,7 @@ import {
127128
Text,
128129
StyleSheet
129130
} from 'react-native';
130-
import {Cpicker,Tpicker} from 'react-native-picker-xg';
131+
import Test3, {Cpicker}from './app/picker';
131132
let wheel2 = [
132133
{
133134
amc: {
@@ -196,7 +197,7 @@ class TpickerEx extends Component {
196197
this.setState({str:str});
197198
}}
198199
/>
199-
<Tpicker
200+
<Test3
200201
inputValue ={'2 wheel picker'}
201202
inputStyle = {testStyle.textInput}
202203
confirmBtnText = {'confirm'}

0 commit comments

Comments
 (0)