Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] TabbarIOS.Item icon with image #1556

Closed
steve-ng opened this issue Jun 8, 2015 · 1 comment
Closed

[Question] TabbarIOS.Item icon with image #1556

steve-ng opened this issue Jun 8, 2015 · 1 comment
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@steve-ng
Copy link
Contributor

steve-ng commented Jun 8, 2015

How do I allow tabbarIOS.item to use my image?

Here's my code, I have an image called itemSelected

<TabBarIOS.Item       
  selected={this.state.selectedTab === 'Item'}      
  icon={require('image!itemNotSelected')}       
  selectedIcon={require('image!itemSelected')}       
 title="Item"       
 onPress={() => { this.setState({ selectedTab: 'Item',});}}

However, I can only see a square box being loaded from react-native in my tabbar.

@steve-ng
Copy link
Contributor Author

steve-ng commented Jun 9, 2015

it's working, except that my image needed to have transparent area.

@steve-ng steve-ng closed this as completed Jun 9, 2015
@facebook facebook locked as resolved and limited conversation to collaborators Jun 9, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants