mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Correct logo URL
Summary: Update logo URL https://facebook.github.io/react/img/logo_og.png (old) to https://facebook.github.io/react/logo-og.png (new) Check that the old URL shows a "Page Not Found" and the new URL the correct image. Closes https://github.com/facebook/react-native/pull/16204 Differential Revision: D5978967 Pulled By: TheSavior fbshipit-source-id: f6af03dfd25d68c96e01054c256d8b6ba9fedba2
This commit is contained in:
committed by
Facebook Github Bot
parent
9c29ee1504
commit
2d2dfa26bc
@@ -97,11 +97,11 @@ Many of the images you will display in your app will not be available at compile
|
||||
|
||||
```javascript
|
||||
// GOOD
|
||||
<Image source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}}
|
||||
<Image source={{uri: 'https://facebook.github.io/react/logo-og.png'}}
|
||||
style={{width: 400, height: 400}} />
|
||||
|
||||
// BAD
|
||||
<Image source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}} />
|
||||
<Image source={{uri: 'https://facebook.github.io/react/logo-og.png'}} />
|
||||
```
|
||||
|
||||
### Network Requests for Images
|
||||
@@ -110,7 +110,7 @@ Many of the images you will display in your app will not be available at compile
|
||||
|
||||
```javascript
|
||||
<Image source={{
|
||||
uri: 'https://facebook.github.io/react/img/logo_og.png',
|
||||
uri: 'https://facebook.github.io/react/logo-og.png',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
Pragma: 'no-cache'
|
||||
@@ -147,7 +147,7 @@ to a URL load request, no attempt is made to load the data from the originating
|
||||
and the load is considered to have failed.
|
||||
|
||||
```javascript
|
||||
<Image source={{uri: 'https://facebook.github.io/react/img/logo_og.png', cache: 'only-if-cached'}}
|
||||
<Image source={{uri: 'https://facebook.github.io/react/logo-og.png', cache: 'only-if-cached'}}
|
||||
style={{width: 400, height: 400}} />
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user