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

How to automatically import images files in ignite 2.0? #926

Open
zbtang opened this issue Mar 22, 2017 · 8 comments
Open

How to automatically import images files in ignite 2.0? #926

zbtang opened this issue Mar 22, 2017 · 8 comments

Comments

@zbtang
Copy link

zbtang commented Mar 22, 2017

Ignite 1 had a command ignite import imagesfile and it would be nice to have an equivalent in Ignite 2.0.

@jamonholmgren
Copy link
Member

Hey there @zbtang ! I assume you're using the https://github.com/infinitered/ignite-ir-boilerplate-2016 boilerplate. Just drop your image files into App/Images, add it to App/Themes/Images.js, and then use it like this:

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!

@zbtang
Copy link
Author

zbtang commented Mar 23, 2017

Hi, thanks ! But what I really mean is how to import images automatic . Because in Ignite 1.x there is a command ignite import imagesfile to import all image files into Images.js file. Is there any command on version 2.0 to automatic import all image files?
Thanks !

@jamonholmgren jamonholmgren reopened this Mar 23, 2017
@jamonholmgren
Copy link
Member

Ah ... I'm not sure! Maybe @fvonhoven knows?

@kevinvangelder kevinvangelder changed the title How to import images files in ignite 2.0 How to automatically import images files in ignite 2.0? Apr 25, 2017
@jamonholmgren
Copy link
Member

This is a good idea, but will need to wait for a future release.

@jamonholmgren jamonholmgren added this to the Future milestone May 18, 2017
@GantMan
Copy link
Member

GantMan commented May 22, 2017

@zbtang - this will return. Just need to rewrite it as a plugin.

@zbtang
Copy link
Author

zbtang commented May 23, 2017

Excited to hear that ! Thanks for your work !

@skellock skellock removed this from the Future milestone Jun 20, 2017
@nikitph
Copy link

nikitph commented Apr 25, 2018

this would be really appreciated

@jamonholmgren
Copy link
Member

We'd appreciate help with this feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants