Skip to content

resolveAssetSource from server(cdn) #17625

@sdyxch

Description

@sdyxch

Is this a bug report?

YES

Have you read the Contributing Guidelines?

YES

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 8.9.3
Yarn: 1.3.2
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.0.1 Build version 9A1994
Android Studio: NO

Packages:
react-native: 0.49.5
react: 16.0.0-beta.5

Target Platform: iOS (11.0.1)

Steps to Reproduce

  1. use resolveAssetSource to load image from bundle, like: resolveAssetSource(require('./assets/oss_standard_share_bar.png'))
  2. publish the js bundle to cdn, like: https://osx.51ping.com/app/osx-fe-rn-demo/index.ios.bundle

Expected Behavior

get the image rightly

Actual Behavior

wechatimg138

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