mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
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:
parent
1b80007236
commit
134dd57cd6
@ -49,9 +49,9 @@ var optionalImageSource = ReactPropTypes.oneOfType([
|
||||
* render: function() {
|
||||
* return (
|
||||
* <ToolbarAndroid
|
||||
* logo={require('image!app_logo')}
|
||||
* logo={require('./app_logo.png')}
|
||||
* 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} />
|
||||
* )
|
||||
* },
|
||||
@ -77,7 +77,7 @@ var ToolbarAndroid = React.createClass({
|
||||
* This property takes an array of objects, where each object has the following keys:
|
||||
*
|
||||
* * `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`,
|
||||
* `ifRoom` or `never`
|
||||
* * `showWithText`: boolean, whether to show text alongside the icon or not
|
||||
|
Loading…
x
Reference in New Issue
Block a user