From 065a6548796b00ba5d9c3384825e7131c466c98f 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 --- RNTesterUnitTests/RCTImageLoaderTests.m | 4 ++-- js/ImageExample.js | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/RNTesterUnitTests/RCTImageLoaderTests.m b/RNTesterUnitTests/RCTImageLoaderTests.m index 59e8b3008..2f20a0504 100644 --- a/RNTesterUnitTests/RCTImageLoaderTests.m +++ b/RNTesterUnitTests/RCTImageLoaderTests.m @@ -54,7 +54,7 @@ - (void)testImageLoading 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 @@ - (void)testImageLoaderUsesImageURLLoaderWithHighestPriority 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/js/ImageExample.js b/js/ImageExample.js index 8d8587776..bda7ddaa3 100644 --- a/js/ImageExample.js +++ b/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: {