[ReactNative] Use deprecated ix in TabBarExample
This commit is contained in:
parent
1aeb02ada3
commit
2cafe228e4
|
@ -46,7 +46,7 @@ var TabBarExample = React.createClass({
|
||||||
selectedTab={this.state.selectedTab}>
|
selectedTab={this.state.selectedTab}>
|
||||||
<TabBarItemIOS
|
<TabBarItemIOS
|
||||||
name="blueTab"
|
name="blueTab"
|
||||||
icon={require('image!favorites')}
|
icon={_ix_DEPRECATED('favorites')}
|
||||||
accessibilityLabel="Blue Tab"
|
accessibilityLabel="Blue Tab"
|
||||||
selected={this.state.selectedTab === 'blueTab'}
|
selected={this.state.selectedTab === 'blueTab'}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
@ -59,7 +59,7 @@ var TabBarExample = React.createClass({
|
||||||
<TabBarItemIOS
|
<TabBarItemIOS
|
||||||
accessibilityLabel="Red Tab"
|
accessibilityLabel="Red Tab"
|
||||||
name="redTab"
|
name="redTab"
|
||||||
icon={require('image!history')}
|
icon={_ix_DEPRECATED('history')}
|
||||||
badgeValue={this.state.notifCount ? String(this.state.notifCount) : null}
|
badgeValue={this.state.notifCount ? String(this.state.notifCount) : null}
|
||||||
selected={this.state.selectedTab === 'redTab'}
|
selected={this.state.selectedTab === 'redTab'}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
@ -72,7 +72,7 @@ var TabBarExample = React.createClass({
|
||||||
</TabBarItemIOS>
|
</TabBarItemIOS>
|
||||||
<TabBarItemIOS
|
<TabBarItemIOS
|
||||||
name="greenTab"
|
name="greenTab"
|
||||||
icon={require('image!more')}
|
icon={_ix_DEPRECATED('more')}
|
||||||
accessibilityLabel="Green Tab"
|
accessibilityLabel="Green Tab"
|
||||||
selected={this.state.selectedTab === 'greenTab'}
|
selected={this.state.selectedTab === 'greenTab'}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
@ -100,4 +100,14 @@ var styles = StyleSheet.create({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// This is needed because the actual image may not exist as a file and
|
||||||
|
// is used by the native code to load a system image.
|
||||||
|
// TODO(nicklockwood): How can this fit our require system?
|
||||||
|
function _ix_DEPRECATED(imageUri) {
|
||||||
|
return {
|
||||||
|
uri: imageUri,
|
||||||
|
isStatic: true,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = TabBarExample;
|
module.exports = TabBarExample;
|
||||||
|
|
Loading…
Reference in New Issue