Skip to content

Commit 22033ab

Browse files
authored
Replaced Item with Picker.Item in Advanced Pickers (iOS only)
1 parent 230f964 commit 22033ab

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎docs/components/picker/Picker-Placeholder.md‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<pre class="line-numbers"><code class="language-jsx">import React, { Component } from "react";
1111
import { Platform } from "react-native";
1212
import { Container, Header, Title, Content, Button, Icon, Text, Right, Body, Left, Picker, Form, Item as FormItem } from "native-base";
13-
const Item = Picker.Item;
1413
export default class PickerPlaceholderExample extends Component {
1514
constructor(props) {
1615
super(props);
@@ -45,15 +44,15 @@ export default class PickerPlaceholderExample extends Component {
4544
selectedValue={this.state.selected2}
4645
onValueChange={this.onValueChange2.bind(this)}
4746
>
48-
&lt;Item label="Wallet" value="key0" />
49-
&lt;Item label="ATM Card" value="key1" />
50-
&lt;Item label="Debit Card" value="key2" />
51-
&lt;Item label="Credit Card" value="key3" />
52-
&lt;Item label="Net Banking" value="key4" />
47+
&lt;Picker.Item label="Wallet" value="key0" />
48+
&lt;Picker.Item label="ATM Card" value="key1" />
49+
&lt;Picker.Item label="Debit Card" value="key2" />
50+
&lt;Picker.Item label="Credit Card" value="key3" />
51+
&lt;Picker.Item label="Net Banking" value="key4" />
5352
&lt;/Picker>
5453
&lt;/Form>
5554
&lt;/Content>
5655
&lt;/Container>
5756
);
5857
}
59-
}</code></pre><br />
58+
}</code></pre><br />

0 commit comments

Comments
 (0)