benawad / destiny

Prettier for File Structures
MIT License
3.53k stars 81 forks source link

React Native Project Import Image @1x, @2x, @3x #115

Closed jigs611989 closed 4 years ago

jigs611989 commented 4 years ago

$ destiny ./src

INFO: Generating tree for: ./src ERROR: Cannot find import ./Img/sam.png

Actually, the files are sam@1x.png, sam@2x.png, sam@3x.png but we just have to use it as require('./Img/sam.png')

For Example

.
├── button.js
└── img
    ├── check.png
    ├── check@2x.png
    └── check@3x.png

<Image source={require('./img/check.png')} />

For detail check Images - React Native

AnatoleLucet commented 4 years ago

duplicate of #107

AnatoleLucet commented 4 years ago

It seems like the author of #107 has changed the purpose of the issue, so I'll reopen this one.

github-actions[bot] commented 4 years ago

:tada: This issue has been resolved in version 0.7.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: