Update ToolbarAndroid.android.js

Summary:
Updates the documentation for `ToolbarAndroid.android.js` with proper asset system syntax.
Closes https://github.com/facebook/react-native/pull/4908

Reviewed By: svcscm

Differential Revision: D2783113

Pulled By: mkonicek

fb-gh-sync-id: 321d79cb80025d7a065ccf012678ecebccb35bae
This commit is contained in:
Mike Fowler
2015-12-22 16:24:07 -08:00
committed by facebook-github-bot-3
parent 1b80007236
commit 134dd57cd6

View File

@@ -49,9 +49,9 @@ var optionalImageSource = ReactPropTypes.oneOfType([
* render: function() { * render: function() {
* return ( * return (
* <ToolbarAndroid * <ToolbarAndroid
* logo={require('image!app_logo')} * logo={require('./app_logo.png')}
* title="AwesomeApp" * title="AwesomeApp"
* actions={[{title: 'Settings', icon: require('image!icon_settings'), show: 'always'}]} * actions={[{title: 'Settings', icon: require('./icon_settings.png'), show: 'always'}]}
* onActionSelected={this.onActionSelected} /> * onActionSelected={this.onActionSelected} />
* ) * )
* }, * },
@@ -77,7 +77,7 @@ var ToolbarAndroid = React.createClass({
* This property takes an array of objects, where each object has the following keys: * This property takes an array of objects, where each object has the following keys:
* *
* * `title`: **required**, the title of this action * * `title`: **required**, the title of this action
* * `icon`: the icon for this action, e.g. `require('image!some_icon')` * * `icon`: the icon for this action, e.g. `require('./some_icon.png')`
* * `show`: when to show this action as an icon or hide it in the overflow menu: `always`, * * `show`: when to show this action as an icon or hide it in the overflow menu: `always`,
* `ifRoom` or `never` * `ifRoom` or `never`
* * `showWithText`: boolean, whether to show text alongside the icon or not * * `showWithText`: boolean, whether to show text alongside the icon or not