itinance / itinance/react-native-fs

Get path of image in Images.xcassets with React Native

Open
#128 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I've asked the same question on [StackOverflow](http://stackoverflow.com/questions/38179924/get-path-of-image-in-images-xcassets-with-react-native), but thought here might be a better place to ask.

I need to get the path to an image. They can either be part of the XCAssets folder or part of the React Native project code.

```
...other things
import FS from 'react-native-fs'

export default class WebViewScreen extends Component {
render() {
const HTML = `




hello



`

return (

)
}
}
```

In order for this to work, `SOMETHING.jpg` needs to be used as the source of an image prior to being used in the code above. How can I get it to show up without doing so?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.