Skip to content

Require('image!'+'name') doesn't work for big images #1708

@0x0ece

Description

@0x0ece

I reduced my issue to this minimal repro (react-native 0.5.0). I have a png of about 1MB, with smaller images I have no issues.

var image = require('image!name');

works properly, while

var image = require('image!'+'name');

returns "Requiring unknown module...".

My use case would be to have jpg images, and of course 'name' will be a variable different for each image. Will jpg be supported anytime soon? Thanks! E.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions