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

Add Example usage with react-native-vector-icons #15

Closed
okwasniewski opened this issue Oct 7, 2024 · 2 comments · Fixed by #99
Closed

Add Example usage with react-native-vector-icons #15

okwasniewski opened this issue Oct 7, 2024 · 2 comments · Fixed by #99
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@okwasniewski
Copy link
Owner

React Native Vector Icons allow users to retrieve the source of the icon.

Goal of this issue is to add new example & section in docs to outline how to use React native vector icons:

import Icon from 'react-native-vector-icons/Ionicons';

const navIcon = Icon.getImageSourceSync('md-arrow-back', 24, 'white');
const overflowIcon = Icon.getImageSourceSync('md-more', 24, 'white');
const settingsIcon = Icon.getImageSourceSync('md-settings', 30, 'white');
const twitterIcon = Icon.getImageSourceSync('logo-twitter', 25, '#4099FF');
@okwasniewski okwasniewski added the enhancement New feature or request label Oct 7, 2024
@fredrikburmester
Copy link

How can I use @expo/vector-icons?

@kevindetry
Copy link

@fredrikburmester since @expo/vector-icons doesn't expose getImageSourceSync, it doesn't seem to be possible to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants