add remote image support to toolbar

Differential Revision: D2493627
This commit is contained in:
Felix Oghină
2015-09-30 05:31:30 -07:00
committed by facebook-github-bot-8
parent ee3f7e9d21
commit 5ca5ec7688
7 changed files with 344 additions and 76 deletions

View File

@@ -93,6 +93,14 @@ var ToolbarAndroidExample = React.createClass({
Touch the icon to reset the custom colors to the default (theme-provided) ones.
</Text>
</UIExplorerBlock>
<UIExplorerBlock title="Toolbar with remote logo & navIcon">
<ToolbarAndroid
actions={[{title: 'Bunny', icon: require('./bunny.png'), show: 'always'}]}
logo={require('./hawk.png')}
navIcon={require('./bunny.png')}
title="Bunny and Hawk"
style={styles.toolbar} />
</UIExplorerBlock>
</UIExplorerPage>
);
},