From dbbb16f5d9470e2977619880d9f882fdadd29379 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Tue, 8 May 2018 18:52:09 +0000 Subject: [PATCH] Deploy website Deploy website version based on ff7d0c5465d00754741b207a68302be6a8b93fda --- .../using-typescript-with-react-native.html | 10 ++++---- blog/index.html | 10 ++++---- docs/next/sectionlist.html | 23 +++++++++++-------- docs/next/signed-apk-android.html | 10 +------- docs/next/tutorial.html | 4 ++-- docs/next/using-a-scrollview.html | 6 ++--- docs/next/webview.html | 7 ++---- docs/sectionlist.html | 23 +++++++++++-------- 8 files changed, 46 insertions(+), 47 deletions(-) diff --git a/blog/2018/05/07/using-typescript-with-react-native.html b/blog/2018/05/07/using-typescript-with-react-native.html index 458327962e5..c5e129218ac 100644 --- a/blog/2018/05/07/using-typescript-with-react-native.html +++ b/blog/2018/05/07/using-typescript-with-react-native.html @@ -134,13 +134,15 @@ export class Hello extends React.Component<Props, State> { } this.state = { - enthusiasmLevel: props.enthusiasmLevel || 1 + enthusiasmLevel: props.enthusiasmLevel || 1, }; } - onIncrement = () => this.setState({ enthusiasmLevel: this.state.enthusiasmLevel + 1 }); - onDecrement = () => this.setState({ enthusiasmLevel: this.state.enthusiasmLevel - 1 }); - getExclamationMarks = (numChars: number) => Array(numChars + 1).join("!") + onIncrement = () => + this.setState({enthusiasmLevel: this.state.enthusiasmLevel + 1}); + onDecrement = () => + this.setState({enthusiasmLevel: this.state.enthusiasmLevel - 1}); + getExclamationMarks = (numChars: number) => Array(numChars + 1).join('!'); render() { return ( diff --git a/blog/index.html b/blog/index.html index 14f844dd066..ca4c996db10 100644 --- a/blog/index.html +++ b/blog/index.html @@ -134,13 +134,15 @@ export class Hello extends React.Component<Props, State> { } this.state = { - enthusiasmLevel: props.enthusiasmLevel || 1 + enthusiasmLevel: props.enthusiasmLevel || 1, }; } - onIncrement = () => this.setState({ enthusiasmLevel: this.state.enthusiasmLevel + 1 }); - onDecrement = () => this.setState({ enthusiasmLevel: this.state.enthusiasmLevel - 1 }); - getExclamationMarks = (numChars: number) => Array(numChars + 1).join("!") + onIncrement = () => + this.setState({enthusiasmLevel: this.state.enthusiasmLevel + 1}); + onDecrement = () => + this.setState({enthusiasmLevel: this.state.enthusiasmLevel - 1}); + getExclamationMarks = (numChars: number) => Array(numChars + 1).join('!'); render() { return ( diff --git a/docs/next/sectionlist.html b/docs/next/sectionlist.html index 9ba51aa7125..c508b2d762c 100644 --- a/docs/next/sectionlist.html +++ b/docs/next/sectionlist.html @@ -27,16 +27,19 @@

If you don't need section support and want a simpler interface, use <FlatList>.

Simple Examples:

-
// Example 1 (Homogeneous Rendering) 
- <SectionList 
-  renderItem={({ item, index, section }) => <Text key={index}>{item}</Text>} 
-  renderSectionHeader={({ section: { title } }) => <Text style={{ fontWeight: 'bold' }}>{title}</Text>} 
-  sections={[ 
-   { title: 'Title1', data: ['item1', 'item2'] }, 
-   { title: 'Title2', data: ['item3', 'item4'] }, 
-   { title: 'Title3', data: ['item5', 'item6'] }, 
-   ]} 
-  keyExtractor={(item, index) => item + index} />
+
// Example 1 (Homogeneous Rendering)
+<SectionList
+  renderItem={({item, index, section}) => <Text key={index}>{item}</Text>}
+  renderSectionHeader={({section: {title}}) => (
+    <Text style={{fontWeight: 'bold'}}>{title}</Text>
+  )}
+  sections={[
+    {title: 'Title1', data: ['item1', 'item2']},
+    {title: 'Title2', data: ['item3', 'item4']},
+    {title: 'Title3', data: ['item5', 'item6']},
+  ]}
+  keyExtractor={(item, index) => item + index}
+/>
 
// Example 2 (Heterogeneous Rendering / No Section Headers)
 const overrideRenderItem = ({ item, index, section: { title, data } }) => <Text key={index}>Override{item}</Text>
diff --git a/docs/next/signed-apk-android.html b/docs/next/signed-apk-android.html
index cbdda81757a..3afaeb0dd14 100644
--- a/docs/next/signed-apk-android.html
+++ b/docs/next/signed-apk-android.html
@@ -19,15 +19,7 @@
 

This command prompts you for passwords for the keystore and key, and to provide the Distinguished Name fields for your key. It then generates the keystore as a file called my-release-key.keystore.

The keystore contains a single key, valid for 10000 days. The alias is a name that you will use later when signing your app, so remember to take note of the alias.

-

On Mac if you not sure where is your jdk bin folder is then perform the following command to find it, -$ /usr/libexec/java_home -it will output the directroy of jdk which looks like this, -/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home -then navigate to that directory by the following command, -$ cd /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/ -Now you can perform the keytool command with sudo permission as shown below, -$ sudo keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

-

Note: Remember to keep your keystore file private and never commit it to version control.

+

On Mac if you not sure where is your jdk bin folder is then perform the following command to find it, $ /usr/libexec/java_home it will output the directroy of jdk which looks like this, /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home then navigate to that directory by the following command, $ cd /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/ Now you can perform the keytool command with sudo permission as shown below, $ sudo keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000 Note: Remember to keep your keystore file private and never commit it to version control.

Setting up gradle variables

  1. Place the my-release-key.keystore file under the android/app directory in your project folder.
  2. diff --git a/docs/next/tutorial.html b/docs/next/tutorial.html index 214507264a4..152a57ba37f 100644 --- a/docs/next/tutorial.html +++ b/docs/next/tutorial.html @@ -25,11 +25,11 @@ <View> <Text>Hello world!</Text> </View> - + ); } } -
+

If you are feeling curious, you can play around with sample code directly in the web simulators. You can also paste it into your App.js file to create a real app on your local machine.

What's going on here?

diff --git a/docs/next/using-a-scrollview.html b/docs/next/using-a-scrollview.html index 9e52a73fd77..ef27fdef90d 100644 --- a/docs/next/using-a-scrollview.html +++ b/docs/next/using-a-scrollview.html @@ -38,7 +38,7 @@ <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> - <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> + <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> <Text style={{fontSize:96}}>What's the best</Text> <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> @@ -50,7 +50,7 @@ <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> - <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> + <Image source={{uri: "http://facebook.github.io/react-native/img/favicon.png", width: 64, height: 64}} /> <Text style={{fontSize:80}}>React Native</Text> </ScrollView> ); @@ -61,7 +61,7 @@ AppRegistry.registerComponent( 'AwesomeProject', () => IScrolledDownAndWhatHappenedNextShockedMe); - +

ScrollViews can be configured to allow paging through views using swiping gestures by using the pagingEnabled props. Swiping horizontally between views can also be implemented on Android using the ViewPagerAndroid component.

A ScrollView with a single item can be used to allow the user to zoom content. Set up the maximumZoomScale and minimumZoomScale props and your user will be able to use pinch and expand gestures to zoom in and out.

diff --git a/docs/next/webview.html b/docs/next/webview.html index 9648c160e64..2bdd5c5667c 100644 --- a/docs/next/webview.html +++ b/docs/next/webview.html @@ -213,9 +213,7 @@

originWhitelist

-

List of origin strings to allow being navigated to. The strings allow wildcards and get matched against just the origin (not the full URL). -If the user taps to navigate to a new page but the new page is not in this whitelist, the URL will be handled by the OS. -The default whitelisted origins are "http://" and "https://".

+

List of origin strings to allow being navigated to. The strings allow wildcards and get matched against just the origin (not the full URL). If the user taps to navigate to a new page but the new page is not in this whitelist, the URL will be handled by the OS. The default whitelisted origins are "http://" and "https://".

@@ -445,8 +443,7 @@ The default whitelisted origins are "http://" and "https://

geolocationEnabled

-

Set whether Geolocation is enabled in the WebView. The default value is false. -Used only in Android.

+

Set whether Geolocation is enabled in the WebView. The default value is false. Used only in Android.

TypeRequired
diff --git a/docs/sectionlist.html b/docs/sectionlist.html index 547592e2238..eb718c3f838 100644 --- a/docs/sectionlist.html +++ b/docs/sectionlist.html @@ -27,16 +27,19 @@

If you don't need section support and want a simpler interface, use <FlatList>.

Simple Examples:

-
// Example 1 (Homogeneous Rendering) 
- <SectionList 
-  renderItem={({ item, index, section }) => <Text key={index}>{item}</Text>} 
-  renderSectionHeader={({ section: { title } }) => <Text style={{ fontWeight: 'bold' }}>{title}</Text>} 
-  sections={[ 
-   { title: 'Title1', data: ['item1', 'item2'] }, 
-   { title: 'Title2', data: ['item3', 'item4'] }, 
-   { title: 'Title3', data: ['item5', 'item6'] }, 
-   ]} 
-  keyExtractor={(item, index) => item + index} />
+
// Example 1 (Homogeneous Rendering)
+<SectionList
+  renderItem={({item, index, section}) => <Text key={index}>{item}</Text>}
+  renderSectionHeader={({section: {title}}) => (
+    <Text style={{fontWeight: 'bold'}}>{title}</Text>
+  )}
+  sections={[
+    {title: 'Title1', data: ['item1', 'item2']},
+    {title: 'Title2', data: ['item3', 'item4']},
+    {title: 'Title3', data: ['item5', 'item6']},
+  ]}
+  keyExtractor={(item, index) => item + index}
+/>
 
// Example 2 (Heterogeneous Rendering / No Section Headers)
 const overrideRenderItem = ({ item, index, section: { title, data } }) => <Text key={index}>Override{item}</Text>
TypeRequiredPlatform