From 8547b7e11163d545b7b99d4bdd063ef71129d62c Mon Sep 17 00:00:00 2001 From: Gustavo Gard Date: Thu, 7 Dec 2017 08:28:35 -0800 Subject: [PATCH] Correct logo URL Summary: Added static files to remove dependency with `react` website, related PR https://github.com/facebook/react-native/pull/16204 After is merged to master, check if all the URLs are working correctly. TheSavior Closes https://github.com/facebook/react-native/pull/16207 Differential Revision: D6509133 Pulled By: hramos fbshipit-source-id: a31dcc07742211dc17046e7e98d805c2282f2a82 --- IntegrationTests/ImageCachePolicyTest.js | 8 ++++---- Libraries/Image/Image.android.js | 2 +- Libraries/Image/ImageBackground.js | 2 +- RNTester/RNTesterUnitTests/RCTImageLoaderTests.m | 4 ++-- RNTester/js/ImageExample.js | 12 ++++++------ 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/IntegrationTests/ImageCachePolicyTest.js b/IntegrationTests/ImageCachePolicyTest.js index 973260071..29b5e68d1 100644 --- a/IntegrationTests/ImageCachePolicyTest.js +++ b/IntegrationTests/ImageCachePolicyTest.js @@ -65,7 +65,7 @@ class ImageCachePolicyTest extends React.Component { Hello this.testComplete('only-if-cached', false)} @@ -74,7 +74,7 @@ class ImageCachePolicyTest extends React.Component { /> this.testComplete('default', true)} @@ -83,7 +83,7 @@ class ImageCachePolicyTest extends React.Component { /> this.testComplete('reload', true)} @@ -92,7 +92,7 @@ class ImageCachePolicyTest extends React.Component { /> this.testComplete('force-cache', true)} diff --git a/Libraries/Image/Image.android.js b/Libraries/Image/Image.android.js index bdea83b20..1105134e4 100644 --- a/Libraries/Image/Image.android.js +++ b/Libraries/Image/Image.android.js @@ -55,7 +55,7 @@ function generateRequestId() { * /> * * * ); diff --git a/Libraries/Image/ImageBackground.js b/Libraries/Image/ImageBackground.js index 6c0901e66..13f4e2e9f 100644 --- a/Libraries/Image/ImageBackground.js +++ b/Libraries/Image/ImageBackground.js @@ -33,7 +33,7 @@ import type {NativeMethodsMixinType} from 'ReactNativeTypes'; * return ( * * React * diff --git a/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m b/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m index 59e8b3008..2f20a0504 100644 --- a/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m +++ b/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m @@ -54,7 +54,7 @@ RCTDefineImageDecoder(RCTImageLoaderTestsDecoder2) NS_VALID_UNTIL_END_OF_SCOPE RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:_bundleURL moduleProvider:^{ return @[loader]; } launchOptions:nil]; - NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://facebook.github.io/react/logo-og.png"]]; + NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://facebook.github.io/react-native/img/opengraph.png"]]; [bridge.imageLoader loadImageWithURLRequest:urlRequest size:CGSizeMake(100, 100) scale:1.0 clipped:YES resizeMode:RCTResizeModeContain progressBlock:^(int64_t progress, int64_t total) { XCTAssertEqual(progress, 1); XCTAssertEqual(total, 1); @@ -85,7 +85,7 @@ RCTDefineImageDecoder(RCTImageLoaderTestsDecoder2) NS_VALID_UNTIL_END_OF_SCOPE RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:_bundleURL moduleProvider:^{ return @[loader1, loader2]; } launchOptions:nil]; - NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://facebook.github.io/react/logo-og.png"]]; + NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://facebook.github.io/react-native/img/opengraph.png"]]; [bridge.imageLoader loadImageWithURLRequest:urlRequest size:CGSizeMake(100, 100) scale:1.0 clipped:YES resizeMode:RCTResizeModeContain progressBlock:^(int64_t progress, int64_t total) { XCTAssertEqual(progress, 1); XCTAssertEqual(total, 1); diff --git a/RNTester/js/ImageExample.js b/RNTester/js/ImageExample.js index 8d8587776..bda7ddaa3 100644 --- a/RNTester/js/ImageExample.js +++ b/RNTester/js/ImageExample.js @@ -195,9 +195,9 @@ var MultipleSourcesExample = createReactClass({ @@ -237,7 +237,7 @@ exports.examples = [ render: function() { return ( ); @@ -727,8 +727,8 @@ exports.examples = [ }, ]; -var fullImage = {uri: 'https://facebook.github.io/react/logo-og.png'}; -var smallImage = {uri: 'https://facebook.github.io/react/img/logo_small_2x.png'}; +var fullImage = {uri: 'https://facebook.github.io/react-native/img/opengraph.png'}; +var smallImage = {uri: 'https://facebook.github.io/react-native/img/favicon.png'}; var styles = StyleSheet.create({ base: {