Skip to content

Images are not showing for me #13

Open
@gfaraj

Description

@gfaraj

Hi there, I'm trying this library but it's not working for me yet. Here's my webpack.config.js:

https://gist.github.com/gfaraj/7dd79873efeb4dac6776117b1cbd5165

When I build the web app, I see the images in the static/media folder but they don't get loaded. Here's an example:

            <View style={styles.pointsContainer}>
                <Image 
                    source={require('./img/tickerHeader.png')}
                    style={{width: wp(4), height: wp(4), resizeMode: 'contain'}} />
                <Text style={styles.points}>{user.points.toLocaleString(undefined, { maximumFractionDigits: 0 })}</Text>
            </View>

and the static/media folder contains the scaled images:

image

I see references to these files in the bundle file:

image

The web site doesn't seem to have any image tags or any of those image files referenced anywhere in the CSS. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions