React-native-video: poster Image supports only images from a url , need support for local images in the project

Created on 23 Jan 2018  路  3Comments  路  Source: react-native-video/react-native-video

i need to set poster image for a video, the poster image is present in my project folder,
the current implementation supports only images from url's

Most helpful comment

Use Image.resolveAssetSource:

Image.resolveAssetSource(require('./path/to/assets/poster.png')).uri

All 3 comments

Anyone looking into this? Been around since Jan and seems simple

Anyone?

Use Image.resolveAssetSource:

Image.resolveAssetSource(require('./path/to/assets/poster.png')).uri
Was this page helpful?
0 / 5 - 0 ratings

Related issues

RZulfikri picture RZulfikri  路  3Comments

joshyg picture joshyg  路  3Comments

Chubacca picture Chubacca  路  3Comments

shahen94 picture shahen94  路  3Comments

afilp picture afilp  路  3Comments