-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
How to automatically import images files in ignite 2.0? #926
Comments
Hey there @zbtang ! I assume you're using the https://github.com/infinitered/ignite-ir-boilerplate-2016 boilerplate. Just drop your image files into import React from 'react'
import { View, Image } from 'react-native'
import { Images, Colors } from '../Themes'
import Styles from './Styles/MyImageStyles'
export default class MyImageComponent extends React.Component {
render () {
return (
{ /* other components... */ }
<Image style={Styles.yourImageStyle} source={Images.yourImageHere} />
{ /* other components... */ }
)
}
} Hope this helps! |
Hi, thanks ! But what I really mean is how to import images automatic . Because in Ignite 1.x there is a command |
Ah ... I'm not sure! Maybe @fvonhoven knows? |
This is a good idea, but will need to wait for a future release. |
@zbtang - this will return. Just need to rewrite it as a plugin. |
Excited to hear that ! Thanks for your work ! |
this would be really appreciated |
We'd appreciate help with this feature! |
Ignite 1 had a command
ignite import imagesfile
and it would be nice to have an equivalent in Ignite 2.0.The text was updated successfully, but these errors were encountered: