From 499fa3fc2404fbb28ec0ddfb27aae6b536fad8ab Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Wed, 20 Mar 2019 00:43:29 +0000 Subject: [PATCH] Deploy website Deploy website version based on 00de0fbb208472ccc11e745cf942615b1f7a836c --- docs/next/native-modules-ios.html | 8 ++++++++ docs/next/native-modules-ios/index.html | 8 ++++++++ docs/next/text.html | 2 +- docs/next/text/index.html | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/next/native-modules-ios.html b/docs/next/native-modules-ios.html index 257a6cdd382..fc367701a07 100644 --- a/docs/next/native-modules-ios.html +++ b/docs/next/native-modules-ios.html @@ -254,6 +254,14 @@ RCTRootView *rootView = [[RCTRootView alloc]
console.log(CalendarManager.firstDayOfTheWeek);
 

Note that the constants are exported only at initialization time, so if you change constantsToExport values at runtime it won't affect the JavaScript environment.

+

Implementing + requiresMainQueueSetup

+

If you override - constantsToExport then you should also implement + requiresMainQueueSetup to let React Native know if your module needs to be initialized on the main thread. Otherwise you will see a warning that in the future your module may be initialized on a background thread unless you explicitly opt out with + requiresMainQueueSetup:

+
+ (BOOL)requiresMainQueueSetup
+{
+  return YES;  // only do this if your module initialization relies on calling UIKit!
+}
+
+

If your module does not require access to UIKit, then you should respond to + requiresMainQueueSetup with NO.

Enum Constants

Enums that are defined via NS_ENUM cannot be used as method arguments without first extending RCTConvert.

In order to export the following NS_ENUM definition:

diff --git a/docs/next/native-modules-ios/index.html b/docs/next/native-modules-ios/index.html index 257a6cdd382..fc367701a07 100644 --- a/docs/next/native-modules-ios/index.html +++ b/docs/next/native-modules-ios/index.html @@ -254,6 +254,14 @@ RCTRootView *rootView = [[RCTRootView alloc]
console.log(CalendarManager.firstDayOfTheWeek);
 

Note that the constants are exported only at initialization time, so if you change constantsToExport values at runtime it won't affect the JavaScript environment.

+

Implementing + requiresMainQueueSetup

+

If you override - constantsToExport then you should also implement + requiresMainQueueSetup to let React Native know if your module needs to be initialized on the main thread. Otherwise you will see a warning that in the future your module may be initialized on a background thread unless you explicitly opt out with + requiresMainQueueSetup:

+
+ (BOOL)requiresMainQueueSetup
+{
+  return YES;  // only do this if your module initialization relies on calling UIKit!
+}
+
+

If your module does not require access to UIKit, then you should respond to + requiresMainQueueSetup with NO.

Enum Constants

Enums that are defined via NS_ENUM cannot be used as method arguments without first extending RCTConvert.

In order to export the following NS_ENUM definition:

diff --git a/docs/next/text.html b/docs/next/text.html index 46286e22892..329a79fe67a 100644 --- a/docs/next/text.html +++ b/docs/next/text.html @@ -390,7 +390,7 @@ AppRegistry.registerComponent('AwesomeProject',

Specifies font weight. The values 'normal' and 'bold' are supported for most fonts. Not all fonts have a variant for each of the numeric values, in that case the closest one is chosen.

  • lineHeight: number

  • textAlign: enum('auto', 'left', 'right', 'center', 'justify')

    -

    Specifies text alignment. The value 'justify' is only supported on iOS and fallbacks to left on Android.

  • +

    Specifies text alignment. The value 'justify' is only supported on iOS and Android Oreo (8.0) or above (API level >= 26). For lower android version it will fallback to left.

  • textDecorationLine: enum('none', 'underline', 'line-through', 'underline line-through')

  • textShadowColor: color

  • fontFamily: string

  • diff --git a/docs/next/text/index.html b/docs/next/text/index.html index 46286e22892..329a79fe67a 100644 --- a/docs/next/text/index.html +++ b/docs/next/text/index.html @@ -390,7 +390,7 @@ AppRegistry.registerComponent('AwesomeProject',

    Specifies font weight. The values 'normal' and 'bold' are supported for most fonts. Not all fonts have a variant for each of the numeric values, in that case the closest one is chosen.

  • lineHeight: number

  • textAlign: enum('auto', 'left', 'right', 'center', 'justify')

    -

    Specifies text alignment. The value 'justify' is only supported on iOS and fallbacks to left on Android.

  • +

    Specifies text alignment. The value 'justify' is only supported on iOS and Android Oreo (8.0) or above (API level >= 26). For lower android version it will fallback to left.

  • textDecorationLine: enum('none', 'underline', 'line-through', 'underline line-through')

  • textShadowColor: color

  • fontFamily: string