- Update remote image example
Summary: I've seen quite a few newbs trip on this, so I'm fixing it. First - you have to set the width/height on a remote image, otherwise nothing shows. This is [even on stack overflow](http://stackoverflow.com/questions/30091398/unable-to-display-image-with-react-native-with-uri). Second - with the addition of ATS in iOS most people who copy/paste this example will not be able to load an insecure image, so I changed it to the `https`. **RESULT** this doc becomes copy/paste friendly again for beginners. Closes https://github.com/facebook/react-native/pull/9235 Differential Revision: D3675478 Pulled By: JoelMarcey fbshipit-source-id: 5b414caa40cda72dec4eace686278c26c251c4bb
This commit is contained in:
Родитель
f8f7a1540d
Коммит
eba6c379c3
|
@ -49,7 +49,8 @@ const ImageViewManager = NativeModules.ImageViewManager;
|
|||
* source={require('./img/favicon.png')}
|
||||
* />
|
||||
* <Image
|
||||
* source={{uri: 'http://facebook.github.io/react/img/logo_og.png'}}
|
||||
* style={{width: 50, height: 50}}
|
||||
* source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}}
|
||||
* />
|
||||
* </View>
|
||||
* );
|
||||
|
|
Загрузка…
Ссылка в новой задаче