From 2cafe228e4bf3863f2988856632e58920973641f Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Mon, 23 Mar 2015 13:47:47 -0700 Subject: [PATCH] [ReactNative] Use deprecated ix in TabBarExample --- Examples/UIExplorer/TabBarExample.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Examples/UIExplorer/TabBarExample.js b/Examples/UIExplorer/TabBarExample.js index 88ca8b11c..a38255ff4 100644 --- a/Examples/UIExplorer/TabBarExample.js +++ b/Examples/UIExplorer/TabBarExample.js @@ -46,7 +46,7 @@ var TabBarExample = React.createClass({ selectedTab={this.state.selectedTab}> { @@ -59,7 +59,7 @@ var TabBarExample = React.createClass({ { @@ -72,7 +72,7 @@ var TabBarExample = React.createClass({ { @@ -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;