mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-08 18:23:13 +08:00
Managed assets support for RCTConvert
Reviewed By: @nicklockwood Differential Revision: D2443130
This commit is contained in:
committed by
facebook-github-bot-4
parent
e15035f30b
commit
f07dd70051
@@ -77,10 +77,12 @@ describe('resolveAssetSource', () => {
|
||||
name: 'logo',
|
||||
type: 'png',
|
||||
}, {
|
||||
__packager_asset: true,
|
||||
isStatic: false,
|
||||
width: 100,
|
||||
height: 200,
|
||||
uri: 'http://10.0.0.1:8081/assets/module/a/logo.png?platform=ios&hash=5b6f00f',
|
||||
scale: 1,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -96,10 +98,12 @@ describe('resolveAssetSource', () => {
|
||||
name: 'logo',
|
||||
type: 'png',
|
||||
}, {
|
||||
__packager_asset: true,
|
||||
isStatic: false,
|
||||
width: 100,
|
||||
height: 200,
|
||||
uri: 'http://10.0.0.1:8081/assets/module/a/logo@2x.png?platform=ios&hash=5b6f00f',
|
||||
scale: 2,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -125,6 +129,7 @@ describe('resolveAssetSource', () => {
|
||||
name: 'logo',
|
||||
type: 'png',
|
||||
}, {
|
||||
__packager_asset: true,
|
||||
isStatic: true,
|
||||
width: 100,
|
||||
height: 200,
|
||||
@@ -153,6 +158,7 @@ describe('resolveAssetSource', () => {
|
||||
name: '!@Logo#1_€', // Invalid chars shouldn't get passed to native
|
||||
type: 'png',
|
||||
}, {
|
||||
__packager_asset: true,
|
||||
isStatic: true,
|
||||
width: 100,
|
||||
height: 200,
|
||||
|
||||
Reference in New Issue
Block a user