Skip to content

[Android][0.30.0] image not show when use specific bundle js file #9422

Closed

Description

@InnerPeace080

I write a application can update js file via network . But when i run from downloaded js bundle file, image is not showing

i use " require('./abc.png') " for source of image component .

Everything fine with react native version 0.17 . (i writed a application have this feature with react native 0.17)

Do anyone know how to fix it? thank you

Activity

  1. rmevans9 commented on Aug 16, 2016

    @rmevans9
    Contributor

    How are you updating the js via the network? Are you using something like Code Push or AppHub?

  2. InnerPeace080 commented on Aug 17, 2016

    @InnerPeace080
    ContributorAuthor

    i write my own module . Task is simple, i download bundle file and place it into data folder of app and then i overwrite getJSBundleFile() function in MainApplication.java to point to my downloaded bundle file.

    for now. i resolve this problem by use object {uri:''} for source prop of image.

  3. rmevans9 commented on Aug 17, 2016

    @rmevans9
    Contributor

    I am not sure that the issue here is related to React Native but rather just how you are handling updating the JS. Check out Code Push or AppHub as they both do about the same thing and they are able to pull images with updates as well. Closing this since this is not a React Native issue.

  4. rmevans9 commented on Aug 17, 2016

    @rmevans9
    Contributor
  5. facebook-github-bot commented on Aug 17, 2016

    @facebook-github-bot
    Contributor

    @rmevans9 tells me to close this issue. If you think it should still be opened let us know why.

  6. locked as resolved and limited conversation to collaborators on May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions