diff --git a/docs/asyncstorage.md b/docs/asyncstorage.md index 3787b3fe4a7..70f783e47ad 100644 --- a/docs/asyncstorage.md +++ b/docs/asyncstorage.md @@ -66,10 +66,10 @@ Fetches an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ----------------------------------------- | -------- | ----------------------------------------------------------------- | -| key | string | Yes | Key of the item to fetch. | -| callback | ?(error: ?Error, result: ?string) => void | No | Function that will be called with a result if found or any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------- | -------- | ----------------------------------------------------------------- | +| key | string | Yes | Key of the item to fetch. | +| callback | `?(error: ?Error, result: ?string) => void` | No | Function that will be called with a result if found or any error. | --- @@ -83,11 +83,11 @@ Sets the value for a `key` and invokes a callback upon completion. Returns a `Pr **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to set. | -| value | string | Yes | Value to set for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to set. | +| value | string | Yes | Value to set for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -101,10 +101,10 @@ Removes an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to remove. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to remove. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -120,11 +120,11 @@ Merges an existing `key` value with an input value, assuming both values are str **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to modify. | -| value | string | Yes | New value to merge for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to modify. | +| value | string | Yes | New value to merge for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | Example: @@ -173,9 +173,9 @@ Erases _all_ `AsyncStorage` for all clients, libraries, etc. You probably don't **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -189,9 +189,9 @@ Gets _all_ keys known to your app; for all callers, libraries, etc. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ---------------------------------------------- | -------- | --------------------------------------------------------------- | -| callback | ?(error: ?Error, keys: ?Array) => void | No | Function that will be called with all keys found and any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------------ | -------- | --------------------------------------------------------------- | +| callback | `?(error: ?Error, keys: ?Array) => void` | No | Function that will be called with all keys found and any error. | --- @@ -221,10 +221,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| -------- | --------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to get. | -| callback | ?(errors: ?Array, result: ?Array>) => void | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ----------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to get. | +| callback | `?(errors: ?Array, result: ?Array>) => void` | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | Example: @@ -258,10 +258,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to set. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to set. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | --- @@ -275,10 +275,10 @@ Call this to batch the deletion of all keys in the `keys` array. Returns a `Prom **Parameters:** -| Name | Type | Required | Description | -| -------- | -------------------------------- | -------- | ----------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to delete. | -| callback | ?(errors: ?Array) => void | No | Function that will be called an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ---------------------------------- | -------- | ----------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to delete. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called an array of any key-specific errors found. | Example: @@ -304,10 +304,10 @@ Batch operation to merge in existing and new values for a given set of keys. Thi **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to merge. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to merge. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | Example: diff --git a/docs/building-for-tv.md b/docs/building-for-tv.md index a2337e7704b..412c00c287e 100644 --- a/docs/building-for-tv.md +++ b/docs/building-for-tv.md @@ -96,11 +96,11 @@ var running_on_android_tv = Platform.isTV; - _TV remote/keyboard input_: A new native class, `RCTTVRemoteHandler`, sets up gesture recognizers for TV remote events. When TV remote events occur, this class fires notifications that are picked up by `RCTTVNavigationEventEmitter` (a subclass of `RCTEventEmitter`), that fires a JS event. This event will be picked up by instances of the `TVEventHandler` JavaScript object. Application code that needs to implement custom handling of TV remote events can create an instance of `TVEventHandler` and listen for these events, as in the following code: - + - _TV remote/keyboard input_: A new native class, `ReactAndroidTVRootViewHelper`, sets up key events handlers for TV remote events. When TV remote events occur, this class fires a JS event. This event will be picked up by instances of the `TVEventHandler` JavaScript object. Application code that needs to implement custom handling of TV remote events can create an instance of `TVEventHandler` and listen for these events, as in the following code: - + ```jsx var TVEventHandler = require('TVEventHandler'); diff --git a/docs/components-and-apis.md b/docs/components-and-apis.md index db70b2b94a7..7007003a58d 100644 --- a/docs/components-and-apis.md +++ b/docs/components-and-apis.md @@ -115,7 +115,7 @@ Many of the following components provide wrappers for commonly used Android clas
-

BackHandler

+

BackHandler

Detect hardware button presses for back navigation.

@@ -127,7 +127,7 @@ Many of the following components provide wrappers for commonly used Android clas
-

PermissionsAndroid

+

PermissionsAndroid

Provides access to the permissions model introduced in Android M.

diff --git a/docs/getting-started.md b/docs/getting-started.md index 791ebfffb14..4e11c1bea9b 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -53,7 +53,7 @@ Congratulations! You've successfully run and modified your first React Native ap
-

Now what?

+

Now what?

Expo also has [docs](https://docs.expo.io) you can reference if you have questions specific to the tool. You can also ask for help at [Expo forums](https://forums.expo.io). diff --git a/docs/intro-react-native-components.md b/docs/intro-react-native-components.md index c98d97dcd68..a45e52fcb51 100644 --- a/docs/intro-react-native-components.md +++ b/docs/intro-react-native-components.md @@ -11,7 +11,7 @@ React Native is an open source framework for building Android and iOS applicatio In Android and iOS development, a **view** is the basic building block of UI: a small rectangular element on the screen which can be used to display text, images, or respond to user input. Even the smallest visual elements of an app, like a line of text or a button, are kinds of views. Some kinds of views can contain other views. It’s views all the way down!
- Diagram of Android and iOS app showing them both built on top of atomic elements called views. + Diagram of Android and iOS app showing them both built on top of atomic elements called views.
Just a sampling of the many views used in Android and iOS apps.
@@ -73,4 +73,4 @@ export default App; Because React Native uses the same API structure as React components, you’ll need to understand React component APIs to get started. The [next section](intro-react) makes for a quick introduction or refresher on the topic. However, if you’re already familiar with React, feel free to [skip ahead](handling-text-input). -A diagram showing React Native's Core Components are a subset of React Components that ship with React Native. +A diagram showing React Native's Core Components are a subset of React Components that ship with React Native. diff --git a/docs/libraries.md b/docs/libraries.md index 0c937046fae..3221eb0092d 100644 --- a/docs/libraries.md +++ b/docs/libraries.md @@ -2,7 +2,7 @@ id: libraries title: Using Libraries author: Brent Vatne -authorURL: https://twitter.com/notbrent +authorURL: 'https://twitter.com/notbrent' description: This guide introduces React Native developers to finding, installing, and using third-party libraries in their apps. --- diff --git a/docs/native-components-ios.md b/docs/native-components-ios.md index 192b27789f3..470c05edfa6 100644 --- a/docs/native-components-ios.md +++ b/docs/native-components-ios.md @@ -429,9 +429,9 @@ class MyNativeView extends React.Component<> { `callNativeMethod` is our custom iOS method which for example changes the `backgroundColor` which is exposed through `MyNativeView`. This method uses `UIManager.dispatchViewManagerCommand` which needs 3 parameters: -- (nonnull NSNumber \*)reactTag  -  id of react view. -- commandID:(NSInteger)commandID  -  Id of the native method that should be called -- commandArgs:(NSArray \*)commandArgs  -  Args of the native method that we can pass from JS to native. +- `(nonnull NSNumber \*)reactTag`  -  id of react view. +- `commandID:(NSInteger)commandID`  -  Id of the native method that should be called +- `commandArgs:(NSArray \*)commandArgs`  -  Args of the native method that we can pass from JS to native. `RNCMyNativeViewManager.m` diff --git a/docs/pressable.md b/docs/pressable.md index 2e4050e5069..20a44694b14 100644 --- a/docs/pressable.md +++ b/docs/pressable.md @@ -23,7 +23,7 @@ After pressing [`onPressIn`](#onpressin), one of two things will happen: 1. The person will remove their finger, triggering [`onPressOut`](#onpressout) followed by [`onPress`](#onpress). 2. If the person leaves their finger longer than 370 milliseconds before removing it, [`onLongPress`](#onlongpress) is triggered. ([`onPressOut`](#onpressout) will still fire when they remove their finger.) -Diagram of the onPress events in sequence. +Diagram of the onPress events in sequence. Fingers are not the most precise instruments, and it is common for users to accidentally activate the wrong element or miss the activation area. To help, `Pressable` has an optional `HitRect` you can use to define how far a touch can register away from the the wrapped element. Presses can start anywhere within a `HitRect`. @@ -32,7 +32,7 @@ Fingers are not the most precise instruments, and it is common for users to acci > The touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.
- Diagram of HitRect and PressRect and how they work. + Diagram of HitRect and PressRect and how they work.
You can set HitRect with hitSlop and set PressRect with pressRetentionOffset.
diff --git a/docs/running-on-device.md b/docs/running-on-device.md index a29d3b8b3f8..e4b03ec580f 100644 --- a/docs/running-on-device.md +++ b/docs/running-on-device.md @@ -31,9 +31,9 @@ If you used Expo CLI or Create React Native App to set up your project, you can
Development OS: - + +
diff --git a/docs/sectionlist.md b/docs/sectionlist.md index 9cdc3b0c8d7..e73af82b084 100644 --- a/docs/sectionlist.md +++ b/docs/sectionlist.md @@ -393,9 +393,9 @@ This may improve scroll performance for large lists. Rendered at the bottom of each section. -| Type | Required | -| ---------------------------------------------------- | -------- | -| [(info: {section: SectionT}) => ?React.Element] | No | +| Type | Required | +| ------------------------------------------------------ | -------- | +| `[(info: {section: SectionT}) => ?React.Element]` | No | --- @@ -403,9 +403,9 @@ Rendered at the bottom of each section. Rendered at the top of each section. These stick to the top of the `ScrollView` by default on iOS. See `stickySectionHeadersEnabled`. -| Type | Required | -| ---------------------------------------------------- | -------- | -| [(info: {section: SectionT}) => ?React.Element] | No | +| Type | Required | +| ------------------------------------------------------ | -------- | +| `[(info: {section: SectionT}) => ?React.Element]` | No | --- @@ -413,9 +413,9 @@ Rendered at the top of each section. These stick to the top of the `ScrollView` Rendered at the top and bottom of each section (note this is different from `ItemSeparatorComponent` which is only rendered between items). These are intended to separate sections from the headers above and below and typically have the same highlight response as `ItemSeparatorComponent`. Also receives `highlighted`, `[leading/trailing][Item/Section]`, and any custom props from `separators.updateProps`. -| Type | Required | -| ----------------- | -------- | -| [ReactClass] | No | +| Type | Required | +| ------------------- | -------- | +| `[ReactClass]` | No | --- diff --git a/docs/testing-overview.md b/docs/testing-overview.md index e21c86243a9..4216c7ff9cd 100644 --- a/docs/testing-overview.md +++ b/docs/testing-overview.md @@ -2,7 +2,7 @@ id: testing-overview title: Testing author: Vojtech Novak -authorURL: https://twitter.com/vonovak +authorURL: 'https://twitter.com/vonovak' description: This guide introduces React Native developers to the key concepts behind testing, how to write good tests, and what kinds of tests you can incorporate into your workflow. --- diff --git a/docs/virtualizedlist.md b/docs/virtualizedlist.md index ac661358a94..3760e92a476 100644 --- a/docs/virtualizedlist.md +++ b/docs/virtualizedlist.md @@ -346,7 +346,7 @@ Set this true while waiting for new data from a refresh. ### `refreshControl` -A custom refresh control element. When set, it overrides the default component built internally. The onRefresh and refreshing props are also ignored. Only works for vertical VirtualizedList. +A custom refresh control element. When set, it overrides the default `` component built internally. The onRefresh and refreshing props are also ignored. Only works for vertical VirtualizedList. | Type | Required | | ------- | -------- | diff --git a/website/versioned_docs/version-0.29/asyncstorage.md b/website/versioned_docs/version-0.29/asyncstorage.md index 1432f6a38be..7545f4da8d2 100644 --- a/website/versioned_docs/version-0.29/asyncstorage.md +++ b/website/versioned_docs/version-0.29/asyncstorage.md @@ -66,10 +66,10 @@ Fetches an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ----------------------------------------- | -------- | ----------------------------------------------------------------- | -| key | string | Yes | Key of the item to fetch. | -| callback | ?(error: ?Error, result: ?string) => void | No | Function that will be called with a result if found or any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------- | -------- | ----------------------------------------------------------------- | +| key | string | Yes | Key of the item to fetch. | +| callback | `?(error: ?Error, result: ?string) => void` | No | Function that will be called with a result if found or any error. | --- @@ -83,11 +83,11 @@ Sets the value for a `key` and invokes a callback upon completion. Returns a `Pr **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to set. | -| value | string | Yes | Value to set for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to set. | +| value | string | Yes | Value to set for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -101,10 +101,10 @@ Removes an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to remove. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to remove. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -120,11 +120,11 @@ Merges an existing `key` value with an input value, assuming both values are str **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to modify. | -| value | string | Yes | New value to merge for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to modify. | +| value | string | Yes | New value to merge for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | Example: @@ -173,9 +173,9 @@ Erases _all_ `AsyncStorage` for all clients, libraries, etc. You probably don't **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -189,9 +189,9 @@ Gets _all_ keys known to your app; for all callers, libraries, etc. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ---------------------------------------------- | -------- | ---------------------------------------------------------- | -| callback | ?(error: ?Error, keys: ?Array) => void | No | Function that will be called the keys found and any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------------ | -------- | ---------------------------------------------------------- | +| callback | `?(error: ?Error, keys: ?Array) => void` | No | Function that will be called the keys found and any error. | --- @@ -221,10 +221,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| -------- | --------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to get. | -| callback | ?(errors: ?Array, result: ?Array>) => void | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ----------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to get. | +| callback | `?(errors: ?Array, result: ?Array>) => void` | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | Example: @@ -258,10 +258,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to set. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to set. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | --- @@ -275,10 +275,10 @@ Call this to batch the deletion of all keys in the `keys` array. Returns a `Prom **Parameters:** -| Name | Type | Required | Description | -| -------- | -------------------------------- | -------- | ----------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to delete. | -| callback | ?(errors: ?Array) => void | No | Function that will be called an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ---------------------------------- | -------- | ----------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to delete. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called an array of any key-specific errors found. | Example: @@ -304,10 +304,9 @@ Batch operation to merge in existing and new values for a given set of keys. Thi **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to merge. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------- | -------- | ------------------------------------------------ | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to merge. | | callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | Example: diff --git a/website/versioned_docs/version-0.31/asyncstorage.md b/website/versioned_docs/version-0.31/asyncstorage.md index d4b6b7716f4..ad34947a163 100644 --- a/website/versioned_docs/version-0.31/asyncstorage.md +++ b/website/versioned_docs/version-0.31/asyncstorage.md @@ -66,10 +66,10 @@ Fetches an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ----------------------------------------- | -------- | ----------------------------------------------------------------- | -| key | string | Yes | Key of the item to fetch. | -| callback | ?(error: ?Error, result: ?string) => void | No | Function that will be called with a result if found or any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------- | -------- | ----------------------------------------------------------------- | +| key | string | Yes | Key of the item to fetch. | +| callback | `?(error: ?Error, result: ?string) => void` | No | Function that will be called with a result if found or any error. | --- @@ -83,11 +83,11 @@ Sets the value for a `key` and invokes a callback upon completion. Returns a `Pr **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to set. | -| value | string | Yes | Value to set for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to set. | +| value | string | Yes | Value to set for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -101,10 +101,10 @@ Removes an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to remove. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to remove. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -120,11 +120,11 @@ Merges an existing `key` value with an input value, assuming both values are str **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to modify. | -| value | string | Yes | New value to merge for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to modify. | +| value | string | Yes | New value to merge for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | Example: @@ -173,9 +173,9 @@ Erases _all_ `AsyncStorage` for all clients, libraries, etc. You probably don't **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -189,9 +189,9 @@ Gets _all_ keys known to your app; for all callers, libraries, etc. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ---------------------------------------------- | -------- | ---------------------------------------------------------- | -| callback | ?(error: ?Error, keys: ?Array) => void | No | Function that will be called the keys found and any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------------ | -------- | ---------------------------------------------------------- | +| callback | `?(error: ?Error, keys: ?Array) => void` | No | Function that will be called the keys found and any error. | --- @@ -221,10 +221,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| -------- | --------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to get. | -| callback | ?(errors: ?Array, result: ?Array>) => void | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ----------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to get. | +| callback | `?(errors: ?Array, result: ?Array>) => void` | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | Example: @@ -258,10 +258,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to set. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to set. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | --- @@ -275,10 +275,10 @@ Call this to batch the deletion of all keys in the `keys` array. Returns a `Prom **Parameters:** -| Name | Type | Required | Description | -| -------- | -------------------------------- | -------- | ----------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to delete. | -| callback | ?(errors: ?Array) => void | No | Function that will be called an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ---------------------------------- | -------- | ----------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to delete. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called an array of any key-specific errors found. | Example: @@ -304,10 +304,10 @@ Batch operation to merge in existing and new values for a given set of keys. Thi **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to merge. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to merge. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | Example: diff --git a/website/versioned_docs/version-0.5/asyncstorage.md b/website/versioned_docs/version-0.5/asyncstorage.md index eb3ef0989f0..21705dde7b5 100644 --- a/website/versioned_docs/version-0.5/asyncstorage.md +++ b/website/versioned_docs/version-0.5/asyncstorage.md @@ -310,10 +310,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to get. | -| callback | (errors, result) => void | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to get. | +| callback | `(errors, result) => void` | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | --- @@ -333,10 +333,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to set. | -| callback | (errors) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to set. | +| callback | (errors) => void | No | Function that will be called with an array of any key-specific errors found. | --- @@ -350,10 +350,10 @@ Call this to batch the deletion of all keys in the `keys` array. Returns a `Prom **Parameters:** -| Name | Type | Required | Description | -| -------- | ---------------- | -------- | ----------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to delete. | -| callback | (errors) => void | No | Function that will be called an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ------------------ | -------- | ----------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to delete. | +| callback | `(errors) => void` | No | Function that will be called an array of any key-specific errors found. | --- @@ -369,7 +369,7 @@ Batch operation to merge in existing and new values for a given set of keys. Thi **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to merge. | -| callback | (errors) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to merge. | +| callback | `(errors) => void` | No | Function that will be called with an array of any key-specific errors found. | diff --git a/website/versioned_docs/version-0.5/building-for-tv.md b/website/versioned_docs/version-0.5/building-for-tv.md index b675012b4b9..589241f3775 100644 --- a/website/versioned_docs/version-0.5/building-for-tv.md +++ b/website/versioned_docs/version-0.5/building-for-tv.md @@ -95,11 +95,11 @@ var running_on_android_tv = Platform.isTV; - _TV remote/keyboard input_: A new native class, `RCTTVRemoteHandler`, sets up gesture recognizers for TV remote events. When TV remote events occur, this class fires notifications that are picked up by `RCTTVNavigationEventEmitter` (a subclass of `RCTEventEmitter`), that fires a JS event. This event will be picked up by instances of the `TVEventHandler` JavaScript object. Application code that needs to implement custom handling of TV remote events can create an instance of `TVEventHandler` and listen for these events, as in the following code: - + - _TV remote/keyboard input_: A new native class, `ReactAndroidTVRootViewHelper`, sets up key events handlers for TV remote events. When TV remote events occur, this class fires a JS event. This event will be picked up by instances of the `TVEventHandler` JavaScript object. Application code that needs to implement custom handling of TV remote events can create an instance of `TVEventHandler` and listen for these events, as in the following code: - + ```jsx var TVEventHandler = require('TVEventHandler'); diff --git a/website/versioned_docs/version-0.5/components-and-apis.md b/website/versioned_docs/version-0.5/components-and-apis.md index c72146cd0fb..32ecf6192a2 100644 --- a/website/versioned_docs/version-0.5/components-and-apis.md +++ b/website/versioned_docs/version-0.5/components-and-apis.md @@ -164,7 +164,7 @@ Many of the following components provide wrappers for commonly used Android clas
-

BackHandler

+

BackHandler

Detect hardware button presses for back navigation.

@@ -182,7 +182,7 @@ Many of the following components provide wrappers for commonly used Android clas
-

PermissionsAndroid

+

PermissionsAndroid

Provides access to the permissions model introduced in Android M.

diff --git a/website/versioned_docs/version-0.5/getting-started.md b/website/versioned_docs/version-0.5/getting-started.md index 39703b4d4d9..2d53fe3f6e2 100644 --- a/website/versioned_docs/version-0.5/getting-started.md +++ b/website/versioned_docs/version-0.5/getting-started.md @@ -54,7 +54,7 @@ Congratulations! You've successfully run and modified your first React Native ap
-

Now what?

+

Now what?

Expo also has [docs](https://docs.expo.io) you can reference if you have questions specific to the tool. You can also ask for help at [Expo forums](https://forums.expo.io). diff --git a/website/versioned_docs/version-0.5/intro-react-native-components.md b/website/versioned_docs/version-0.5/intro-react-native-components.md index 0594853782f..e086fb6a1c7 100644 --- a/website/versioned_docs/version-0.5/intro-react-native-components.md +++ b/website/versioned_docs/version-0.5/intro-react-native-components.md @@ -12,7 +12,7 @@ React Native is an open source framework for building Android and iOS applicatio In Android and iOS development, a **view** is the basic building block of UI: a small rectangular element on the screen which can be used to display text, images, or respond to user input. Even the smallest visual elements of an app, like a line of text or a button, are kinds of views. Some kinds of views can contain other views. It’s views all the way down!
- Diagram of Android and iOS app showing them both built on top of atomic elements called views. + Diagram of Android and iOS app showing them both built on top of atomic elements called views.
Just a sampling of the many views used in Android and iOS apps.
@@ -72,4 +72,4 @@ export default function App() { Because React Native uses the same API structure as React components, you’ll need to understand React component APIs to get started. The [next section](intro-react) makes for a quick introduction or refresher on the topic. However, if you’re already familiar with React, feel free to [skip ahead](handling-text-input). -A diagram showing React Native's Core Components are a subset of React Components that ship with React Native. +A diagram showing React Native's Core Components are a subset of React Components that ship with React Native. diff --git a/website/versioned_docs/version-0.5/native-components-ios.md b/website/versioned_docs/version-0.5/native-components-ios.md index b8ad817c5f8..4561f4a39d5 100644 --- a/website/versioned_docs/version-0.5/native-components-ios.md +++ b/website/versioned_docs/version-0.5/native-components-ios.md @@ -430,9 +430,9 @@ class MyNativeView extends React.Component<> { `callNativeMethod` is our custom iOS method which for example changes the `backgroundColor` which is exposed through `MyNativeView`. This method uses `UIManager.dispatchViewManagerCommand` which needs 3 parameters: -- (nonnull NSNumber \*)reactTag  -  id of react view. -- commandID:(NSInteger)commandID  -  Id of the native method that should be called -- commandArgs:(NSArray \*)commandArgs  -  Args of the native method that we can pass from JS to native. +- `(nonnull NSNumber \*)reactTag`  -  id of react view. +- `commandID:(NSInteger)commandID`  -  Id of the native method that should be called +- `commandArgs:(NSArray \*)commandArgs`  -  Args of the native method that we can pass from JS to native. `RNCMyNativeViewManager.m` diff --git a/website/versioned_docs/version-0.5/running-on-device.md b/website/versioned_docs/version-0.5/running-on-device.md index 5dcd02187aa..f43b3874255 100644 --- a/website/versioned_docs/version-0.5/running-on-device.md +++ b/website/versioned_docs/version-0.5/running-on-device.md @@ -32,9 +32,9 @@ If you used Expo CLI or Create React Native App to set up your project, you can
Development OS: - + +
diff --git a/website/versioned_docs/version-0.56/asyncstorage.md b/website/versioned_docs/version-0.56/asyncstorage.md index 8f0300f25ed..3f0fdc1b4ef 100644 --- a/website/versioned_docs/version-0.56/asyncstorage.md +++ b/website/versioned_docs/version-0.56/asyncstorage.md @@ -76,10 +76,10 @@ Fetches an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ----------------------------------------- | -------- | ----------------------------------------------------------------- | -| key | string | Yes | Key of the item to fetch. | -| callback | ?(error: ?Error, result: ?string) => void | No | Function that will be called with a result if found or any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------- | -------- | ----------------------------------------------------------------- | +| key | string | Yes | Key of the item to fetch. | +| callback | `?(error: ?Error, result: ?string) => void` | No | Function that will be called with a result if found or any error. | --- @@ -93,11 +93,11 @@ Sets the value for a `key` and invokes a callback upon completion. Returns a `Pr **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to set. | -| value | string | Yes | Value to set for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to set. | +| value | string | Yes | Value to set for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -111,10 +111,10 @@ Removes an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to remove. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to remove. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -130,11 +130,11 @@ Merges an existing `key` value with an input value, assuming both values are str **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to modify. | -| value | string | Yes | New value to merge for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to modify. | +| value | string | Yes | New value to merge for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | Example: @@ -183,9 +183,9 @@ Erases _all_ `AsyncStorage` for all clients, libraries, etc. You probably don't **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -199,9 +199,9 @@ Gets _all_ keys known to your app; for all callers, libraries, etc. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ---------------------------------------------- | -------- | ---------------------------------------------------------- | -| callback | ?(error: ?Error, keys: ?Array) => void | No | Function that will be called the keys found and any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------------ | -------- | ---------------------------------------------------------- | +| callback | `?(error: ?Error, keys: ?Array) => void` | No | Function that will be called the keys found and any error. | --- @@ -231,10 +231,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| -------- | --------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to get. | -| callback | ?(errors: ?Array, result: ?Array>) => void | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ----------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to get. | +| callback | `?(errors: ?Array, result: ?Array>) => void` | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | Example: @@ -268,10 +268,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to set. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to set. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | --- @@ -285,10 +285,10 @@ Call this to batch the deletion of all keys in the `keys` array. Returns a `Prom **Parameters:** -| Name | Type | Required | Description | -| -------- | -------------------------------- | -------- | ----------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to delete. | -| callback | ?(errors: ?Array) => void | No | Function that will be called an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ---------------------------------- | -------- | ----------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to delete. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called an array of any key-specific errors found. | Example: @@ -314,10 +314,10 @@ Batch operation to merge in existing and new values for a given set of keys. Thi **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to merge. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to merge. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | Example: diff --git a/website/versioned_docs/version-0.58/asyncstorage.md b/website/versioned_docs/version-0.58/asyncstorage.md index 00fd52a5ec9..bbbc910d883 100644 --- a/website/versioned_docs/version-0.58/asyncstorage.md +++ b/website/versioned_docs/version-0.58/asyncstorage.md @@ -79,10 +79,10 @@ Fetches an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ----------------------------------------- | -------- | ----------------------------------------------------------------- | -| key | string | Yes | Key of the item to fetch. | -| callback | ?(error: ?Error, result: ?string) => void | No | Function that will be called with a result if found or any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------- | -------- | ----------------------------------------------------------------- | +| key | string | Yes | Key of the item to fetch. | +| callback | `?(error: ?Error, result: ?string) => void` | No | Function that will be called with a result if found or any error. | --- @@ -96,11 +96,11 @@ Sets the value for a `key` and invokes a callback upon completion. Returns a `Pr **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to set. | -| value | string | Yes | Value to set for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to set. | +| value | string | Yes | Value to set for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -114,10 +114,10 @@ Removes an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to remove. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to remove. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -133,11 +133,11 @@ Merges an existing `key` value with an input value, assuming both values are str **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to modify. | -| value | string | Yes | New value to merge for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to modify. | +| value | string | Yes | New value to merge for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | Example: @@ -186,9 +186,9 @@ Erases _all_ `AsyncStorage` for all clients, libraries, etc. You probably don't **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -202,9 +202,9 @@ Gets _all_ keys known to your app; for all callers, libraries, etc. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ---------------------------------------------- | -------- | --------------------------------------------------------------- | -| callback | ?(error: ?Error, keys: ?Array) => void | No | Function that will be called with all keys found and any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------------ | -------- | --------------------------------------------------------------- | +| callback | `?(error: ?Error, keys: ?Array) => void` | No | Function that will be called with all keys found and any error. | --- @@ -234,10 +234,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| -------- | --------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to get. | -| callback | ?(errors: ?Array, result: ?Array>) => void | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ----------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to get. | +| callback | `?(errors: ?Array, result: ?Array>) => void` | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | Example: @@ -271,10 +271,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to set. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to set. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | --- @@ -288,10 +288,10 @@ Call this to batch the deletion of all keys in the `keys` array. Returns a `Prom **Parameters:** -| Name | Type | Required | Description | -| -------- | -------------------------------- | -------- | ----------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to delete. | -| callback | ?(errors: ?Array) => void | No | Function that will be called an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ---------------------------------- | -------- | ----------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to delete. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called an array of any key-specific errors found. | Example: @@ -317,10 +317,10 @@ Batch operation to merge in existing and new values for a given set of keys. Thi **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to merge. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to merge. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | Example: diff --git a/website/versioned_docs/version-0.59/asyncstorage.md b/website/versioned_docs/version-0.59/asyncstorage.md index 9a4942187d2..512e3ff5753 100644 --- a/website/versioned_docs/version-0.59/asyncstorage.md +++ b/website/versioned_docs/version-0.59/asyncstorage.md @@ -81,10 +81,10 @@ Fetches an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ----------------------------------------- | -------- | ----------------------------------------------------------------- | -| key | string | Yes | Key of the item to fetch. | -| callback | ?(error: ?Error, result: ?string) => void | No | Function that will be called with a result if found or any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------- | -------- | ----------------------------------------------------------------- | +| key | string | Yes | Key of the item to fetch. | +| callback | `?(error: ?Error, result: ?string) => void` | No | Function that will be called with a result if found or any error. | --- @@ -98,11 +98,11 @@ Sets the value for a `key` and invokes a callback upon completion. Returns a `Pr **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to set. | -| value | string | Yes | Value to set for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to set. | +| value | string | Yes | Value to set for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -116,10 +116,10 @@ Removes an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to remove. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to remove. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -135,11 +135,11 @@ Merges an existing `key` value with an input value, assuming both values are str **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to modify. | -| value | string | Yes | New value to merge for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to modify. | +| value | string | Yes | New value to merge for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | Example: @@ -188,9 +188,9 @@ Erases _all_ `AsyncStorage` for all clients, libraries, etc. You probably don't **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -204,9 +204,9 @@ Gets _all_ keys known to your app; for all callers, libraries, etc. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ---------------------------------------------- | -------- | --------------------------------------------------------------- | -| callback | ?(error: ?Error, keys: ?Array) => void | No | Function that will be called with all keys found and any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------------ | -------- | --------------------------------------------------------------- | +| callback | `?(error: ?Error, keys: ?Array) => void` | No | Function that will be called with all keys found and any error. | --- @@ -236,10 +236,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| -------- | --------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to get. | -| callback | ?(errors: ?Array, result: ?Array>) => void | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ----------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to get. | +| callback | `?(errors: ?Array, result: ?Array>) => void` | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | Example: @@ -273,10 +273,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to set. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to set. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | --- @@ -290,10 +290,10 @@ Call this to batch the deletion of all keys in the `keys` array. Returns a `Prom **Parameters:** -| Name | Type | Required | Description | -| -------- | -------------------------------- | -------- | ----------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to delete. | -| callback | ?(errors: ?Array) => void | No | Function that will be called an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ---------------------------------- | -------- | ----------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to delete. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called an array of any key-specific errors found. | Example: @@ -319,10 +319,10 @@ Batch operation to merge in existing and new values for a given set of keys. Thi **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to merge. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to merge. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | Example: diff --git a/website/versioned_docs/version-0.60/asyncstorage.md b/website/versioned_docs/version-0.60/asyncstorage.md index 028b4229bd2..83a5a53c800 100644 --- a/website/versioned_docs/version-0.60/asyncstorage.md +++ b/website/versioned_docs/version-0.60/asyncstorage.md @@ -67,10 +67,10 @@ Fetches an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ----------------------------------------- | -------- | ----------------------------------------------------------------- | -| key | string | Yes | Key of the item to fetch. | -| callback | ?(error: ?Error, result: ?string) => void | No | Function that will be called with a result if found or any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------- | -------- | ----------------------------------------------------------------- | +| key | string | Yes | Key of the item to fetch. | +| callback | `?(error: ?Error, result: ?string) => void` | No | Function that will be called with a result if found or any error. | --- @@ -84,11 +84,11 @@ Sets the value for a `key` and invokes a callback upon completion. Returns a `Pr **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to set. | -| value | string | Yes | Value to set for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to set. | +| value | string | Yes | Value to set for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -102,10 +102,10 @@ Removes an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to remove. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to remove. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -121,11 +121,11 @@ Merges an existing `key` value with an input value, assuming both values are str **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to modify. | -| value | string | Yes | New value to merge for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to modify. | +| value | string | Yes | New value to merge for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | Example: @@ -174,9 +174,9 @@ Erases _all_ `AsyncStorage` for all clients, libraries, etc. You probably don't **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -190,9 +190,9 @@ Gets _all_ keys known to your app; for all callers, libraries, etc. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ---------------------------------------------- | -------- | --------------------------------------------------------------- | -| callback | ?(error: ?Error, keys: ?Array) => void | No | Function that will be called with all keys found and any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------------ | -------- | --------------------------------------------------------------- | +| callback | `?(error: ?Error, keys: ?Array) => void` | No | Function that will be called with all keys found and any error. | --- @@ -222,10 +222,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| -------- | --------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to get. | -| callback | ?(errors: ?Array, result: ?Array>) => void | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ----------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to get. | +| callback | `?(errors: ?Array, result: ?Array>) => void` | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | Example: @@ -259,10 +259,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to set. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to set. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | --- @@ -276,10 +276,10 @@ Call this to batch the deletion of all keys in the `keys` array. Returns a `Prom **Parameters:** -| Name | Type | Required | Description | -| -------- | -------------------------------- | -------- | ----------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to delete. | -| callback | ?(errors: ?Array) => void | No | Function that will be called an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ---------------------------------- | -------- | ----------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to delete. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called an array of any key-specific errors found. | Example: @@ -305,10 +305,10 @@ Batch operation to merge in existing and new values for a given set of keys. Thi **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to merge. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to merge. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | Example: diff --git a/website/versioned_docs/version-0.60/getting-started.md b/website/versioned_docs/version-0.60/getting-started.md index b13c6da59cb..eae3e8bee29 100644 --- a/website/versioned_docs/version-0.60/getting-started.md +++ b/website/versioned_docs/version-0.60/getting-started.md @@ -54,7 +54,7 @@ Congratulations! You've successfully run and modified your first React Native ap
-

Now what?

+

Now what?

Expo also has [docs](https://docs.expo.io) you can reference if you have questions specific to the tool. You can also ask for help at [Expo forums](https://forums.expo.io). diff --git a/website/versioned_docs/version-0.60/virtualizedlist.md b/website/versioned_docs/version-0.60/virtualizedlist.md index 4ab654ed44d..7608abb63ec 100644 --- a/website/versioned_docs/version-0.60/virtualizedlist.md +++ b/website/versioned_docs/version-0.60/virtualizedlist.md @@ -279,7 +279,7 @@ Set this true while waiting for new data from a refresh. ### `refreshControl` -A custom refresh control element. When set, it overrides the default component built internally. The onRefresh and refreshing props are also ignored. Only works for vertical VirtualizedList. +A custom refresh control element. When set, it overrides the default `` component built internally. The onRefresh and refreshing props are also ignored. Only works for vertical VirtualizedList. | Type | Required | | ------- | -------- | diff --git a/website/versioned_docs/version-0.61/asyncstorage.md b/website/versioned_docs/version-0.61/asyncstorage.md index 07cb2606f0d..8b786ce63b9 100644 --- a/website/versioned_docs/version-0.61/asyncstorage.md +++ b/website/versioned_docs/version-0.61/asyncstorage.md @@ -67,10 +67,10 @@ Fetches an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ----------------------------------------- | -------- | ----------------------------------------------------------------- | -| key | string | Yes | Key of the item to fetch. | -| callback | ?(error: ?Error, result: ?string) => void | No | Function that will be called with a result if found or any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------- | -------- | ----------------------------------------------------------------- | +| key | string | Yes | Key of the item to fetch. | +| callback | `?(error: ?Error, result: ?string) => void` | No | Function that will be called with a result if found or any error. | --- @@ -84,11 +84,11 @@ Sets the value for a `key` and invokes a callback upon completion. Returns a `Pr **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to set. | -| value | string | Yes | Value to set for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to set. | +| value | string | Yes | Value to set for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -102,10 +102,10 @@ Removes an item for a `key` and invokes a callback upon completion. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to remove. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to remove. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -121,11 +121,11 @@ Merges an existing `key` value with an input value, assuming both values are str **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| key | string | Yes | Key of the item to modify. | -| value | string | Yes | New value to merge for the `key`. | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| key | string | Yes | Key of the item to modify. | +| value | string | Yes | New value to merge for the `key`. | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | Example: @@ -174,9 +174,9 @@ Erases _all_ `AsyncStorage` for all clients, libraries, etc. You probably don't **Parameters:** -| Name | Type | Required | Description | -| -------- | ------------------------ | -------- | -------------------------------------------- | -| callback | ?(error: ?Error) => void | No | Function that will be called with any error. | +| Name | Type | Required | Description | +| -------- | -------------------------- | -------- | -------------------------------------------- | +| callback | `?(error: ?Error) => void` | No | Function that will be called with any error. | --- @@ -190,9 +190,9 @@ Gets _all_ keys known to your app; for all callers, libraries, etc. Returns a `P **Parameters:** -| Name | Type | Required | Description | -| -------- | ---------------------------------------------- | -------- | --------------------------------------------------------------- | -| callback | ?(error: ?Error, keys: ?Array) => void | No | Function that will be called with all keys found and any error. | +| Name | Type | Required | Description | +| -------- | ------------------------------------------------ | -------- | --------------------------------------------------------------- | +| callback | `?(error: ?Error, keys: ?Array) => void` | No | Function that will be called with all keys found and any error. | --- @@ -222,10 +222,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| -------- | --------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to get. | -| callback | ?(errors: ?Array, result: ?Array>) => void | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ----------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to get. | +| callback | `?(errors: ?Array, result: ?Array>) => void` | No | Function that will be called with a key-value array of the results, plus an array of any key-specific errors found. | Example: @@ -259,10 +259,10 @@ The method returns a `Promise` object. **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to set. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to set. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | --- @@ -276,10 +276,10 @@ Call this to batch the deletion of all keys in the `keys` array. Returns a `Prom **Parameters:** -| Name | Type | Required | Description | -| -------- | -------------------------------- | -------- | ----------------------------------------------------------------------- | -| keys | Array | Yes | Array of key for the items to delete. | -| callback | ?(errors: ?Array) => void | No | Function that will be called an array of any key-specific errors found. | +| Name | Type | Required | Description | +| -------- | ---------------------------------- | -------- | ----------------------------------------------------------------------- | +| keys | `Array` | Yes | Array of key for the items to delete. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called an array of any key-specific errors found. | Example: @@ -305,10 +305,10 @@ Batch operation to merge in existing and new values for a given set of keys. Thi **Parameters:** -| Name | Type | Required | Description | -| ------------- | -------------------------------- | -------- | ---------------------------------------------------------------------------- | -| keyValuePairs | Array> | Yes | Array of key-value array for the items to merge. | -| callback | ?(errors: ?Array) => void | No | Function that will be called with an array of any key-specific errors found. | +| Name | Type | Required | Description | +| ------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------- | +| keyValuePairs | `Array>` | Yes | Array of key-value array for the items to merge. | +| callback | `?(errors: ?Array) => void` | No | Function that will be called with an array of any key-specific errors found. | Example: diff --git a/website/versioned_docs/version-0.61/getting-started.md b/website/versioned_docs/version-0.61/getting-started.md index 5f0cb7e6de4..661e44feb7a 100644 --- a/website/versioned_docs/version-0.61/getting-started.md +++ b/website/versioned_docs/version-0.61/getting-started.md @@ -54,7 +54,7 @@ Congratulations! You've successfully run and modified your first React Native ap
-

Now what?

+

Now what?

Expo also has [docs](https://docs.expo.io) you can reference if you have questions specific to the tool. You can also ask for help at [Expo forums](https://forums.expo.io). diff --git a/website/versioned_docs/version-0.62/building-for-tv.md b/website/versioned_docs/version-0.62/building-for-tv.md index 3d64876eb7b..374abb19f0e 100644 --- a/website/versioned_docs/version-0.62/building-for-tv.md +++ b/website/versioned_docs/version-0.62/building-for-tv.md @@ -97,11 +97,11 @@ var running_on_android_tv = Platform.isTV; - _TV remote/keyboard input_: A new native class, `RCTTVRemoteHandler`, sets up gesture recognizers for TV remote events. When TV remote events occur, this class fires notifications that are picked up by `RCTTVNavigationEventEmitter` (a subclass of `RCTEventEmitter`), that fires a JS event. This event will be picked up by instances of the `TVEventHandler` JavaScript object. Application code that needs to implement custom handling of TV remote events can create an instance of `TVEventHandler` and listen for these events, as in the following code: - + - _TV remote/keyboard input_: A new native class, `ReactAndroidTVRootViewHelper`, sets up key events handlers for TV remote events. When TV remote events occur, this class fires a JS event. This event will be picked up by instances of the `TVEventHandler` JavaScript object. Application code that needs to implement custom handling of TV remote events can create an instance of `TVEventHandler` and listen for these events, as in the following code: - + ```jsx var TVEventHandler = require('TVEventHandler'); diff --git a/website/versioned_docs/version-0.62/components-and-apis.md b/website/versioned_docs/version-0.62/components-and-apis.md index 5d2f4246055..4f936507a94 100644 --- a/website/versioned_docs/version-0.62/components-and-apis.md +++ b/website/versioned_docs/version-0.62/components-and-apis.md @@ -122,7 +122,7 @@ Many of the following components provide wrappers for commonly used Android clas
-

BackHandler

+

BackHandler

Detect hardware button presses for back navigation.

@@ -134,7 +134,7 @@ Many of the following components provide wrappers for commonly used Android clas
-

PermissionsAndroid

+

PermissionsAndroid

Provides access to the permissions model introduced in Android M.

diff --git a/website/versioned_docs/version-0.62/getting-started.md b/website/versioned_docs/version-0.62/getting-started.md index febb724dc18..5a471b39559 100644 --- a/website/versioned_docs/version-0.62/getting-started.md +++ b/website/versioned_docs/version-0.62/getting-started.md @@ -54,7 +54,7 @@ Congratulations! You've successfully run and modified your first React Native ap
-

Now what?

+

Now what?

Expo also has [docs](https://docs.expo.io) you can reference if you have questions specific to the tool. You can also ask for help at [Expo forums](https://forums.expo.io). diff --git a/website/versioned_docs/version-0.62/intro-react-native-components.md b/website/versioned_docs/version-0.62/intro-react-native-components.md index 4e1fdad237c..fa5276487ca 100644 --- a/website/versioned_docs/version-0.62/intro-react-native-components.md +++ b/website/versioned_docs/version-0.62/intro-react-native-components.md @@ -12,7 +12,7 @@ React Native is an open source framework for building Android and iOS applicatio In Android and iOS development, a **view** is the basic building block of UI: a small rectangular element on the screen which can be used to display text, images, or respond to user input. Even the smallest visual elements of an app, like a line of text or a button, are kinds of views. Some kinds of views can contain other views. It’s views all the way down!
- Diagram of Android and iOS app showing them both built on top of atomic elements called views. + Diagram of Android and iOS app showing them both built on top of atomic elements called views.
Just a sampling of the many views used in Android and iOS apps.
@@ -67,4 +67,4 @@ export default function App() { Because React Native uses the same API structure as React components, you’ll need to understand React component APIs to get started. The [next section](intro-react) makes for a quick introduction or refresher on the topic. However, if you’re already familiar with React, feel free to [skip ahead](handling-text-input). -A diagram showing React Native's Core Components are a subset of React Components that ship with React Native. +A diagram showing React Native's Core Components are a subset of React Components that ship with React Native. diff --git a/website/versioned_docs/version-0.62/native-components-ios.md b/website/versioned_docs/version-0.62/native-components-ios.md index 699c44520cf..afcf32ba611 100644 --- a/website/versioned_docs/version-0.62/native-components-ios.md +++ b/website/versioned_docs/version-0.62/native-components-ios.md @@ -430,9 +430,9 @@ class MyNativeView extends React.Component<> { `callNativeMethod` is our custom iOS method which for example changes the `backgroundColor` which is exposed through `MyNativeView`. This method uses `UIManager.dispatchViewManagerCommand` which needs 3 parameters: -- (nonnull NSNumber \*)reactTag  -  id of react view. -- commandID:(NSInteger)commandID  -  Id of the native method that should be called -- commandArgs:(NSArray \*)commandArgs  -  Args of the native method that we can pass from JS to native. +- `(nonnull NSNumber \*)reactTag`  -  id of react view. +- `commandID:(NSInteger)commandID`  -  Id of the native method that should be called +- `commandArgs:(NSArray \*)commandArgs`  -  Args of the native method that we can pass from JS to native. `RNCMyNativeViewManager.m` diff --git a/website/versioned_docs/version-0.62/running-on-device.md b/website/versioned_docs/version-0.62/running-on-device.md index bdd1b91f9e0..5766a4e6c78 100644 --- a/website/versioned_docs/version-0.62/running-on-device.md +++ b/website/versioned_docs/version-0.62/running-on-device.md @@ -32,9 +32,9 @@ If you used Expo CLI or Create React Native App to set up your project, you can
Development OS: - + +
diff --git a/website/versioned_docs/version-0.62/virtualizedlist.md b/website/versioned_docs/version-0.62/virtualizedlist.md index 534fe7b55ad..6d166dac032 100644 --- a/website/versioned_docs/version-0.62/virtualizedlist.md +++ b/website/versioned_docs/version-0.62/virtualizedlist.md @@ -347,7 +347,7 @@ Set this true while waiting for new data from a refresh. ### `refreshControl` -A custom refresh control element. When set, it overrides the default component built internally. The onRefresh and refreshing props are also ignored. Only works for vertical VirtualizedList. +A custom refresh control element. When set, it overrides the default `` component built internally. The onRefresh and refreshing props are also ignored. Only works for vertical VirtualizedList. | Type | Required | | ------- | -------- | diff --git a/website/versioned_docs/version-0.63/components-and-apis.md b/website/versioned_docs/version-0.63/components-and-apis.md index 5298eeba370..6e8fcd6ef89 100644 --- a/website/versioned_docs/version-0.63/components-and-apis.md +++ b/website/versioned_docs/version-0.63/components-and-apis.md @@ -116,7 +116,7 @@ Many of the following components provide wrappers for commonly used Android clas
-

BackHandler

+

BackHandler

Detect hardware button presses for back navigation.

@@ -128,7 +128,7 @@ Many of the following components provide wrappers for commonly used Android clas
-

PermissionsAndroid

+

PermissionsAndroid

Provides access to the permissions model introduced in Android M.

diff --git a/website/versioned_docs/version-0.63/getting-started.md b/website/versioned_docs/version-0.63/getting-started.md index a26da6cae83..a3450b7ea2f 100644 --- a/website/versioned_docs/version-0.63/getting-started.md +++ b/website/versioned_docs/version-0.63/getting-started.md @@ -54,7 +54,7 @@ Congratulations! You've successfully run and modified your first React Native ap
-

Now what?

+

Now what?

Expo also has [docs](https://docs.expo.io) you can reference if you have questions specific to the tool. You can also ask for help at [Expo forums](https://forums.expo.io). diff --git a/website/versioned_docs/version-0.63/intro-react-native-components.md b/website/versioned_docs/version-0.63/intro-react-native-components.md index 725516460f3..bd69997eb36 100644 --- a/website/versioned_docs/version-0.63/intro-react-native-components.md +++ b/website/versioned_docs/version-0.63/intro-react-native-components.md @@ -12,7 +12,7 @@ React Native is an open source framework for building Android and iOS applicatio In Android and iOS development, a **view** is the basic building block of UI: a small rectangular element on the screen which can be used to display text, images, or respond to user input. Even the smallest visual elements of an app, like a line of text or a button, are kinds of views. Some kinds of views can contain other views. It’s views all the way down!
- Diagram of Android and iOS app showing them both built on top of atomic elements called views. + Diagram of Android and iOS app showing them both built on top of atomic elements called views.
Just a sampling of the many views used in Android and iOS apps.
@@ -74,4 +74,4 @@ export default App; Because React Native uses the same API structure as React components, you’ll need to understand React component APIs to get started. The [next section](intro-react) makes for a quick introduction or refresher on the topic. However, if you’re already familiar with React, feel free to [skip ahead](handling-text-input). -A diagram showing React Native's Core Components are a subset of React Components that ship with React Native. +A diagram showing React Native's Core Components are a subset of React Components that ship with React Native. diff --git a/website/versioned_docs/version-0.63/pressable.md b/website/versioned_docs/version-0.63/pressable.md index 34a51fc59bd..c31c138d04a 100644 --- a/website/versioned_docs/version-0.63/pressable.md +++ b/website/versioned_docs/version-0.63/pressable.md @@ -33,7 +33,7 @@ Fingers are not the most precise instruments, and it is common for users to acci > The touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.
- Diagram of HitRect and PressRect and how they work. + Diagram of HitRect and PressRect and how they work.
You can set HitRect with hitSlop and set PressRect with pressRetentionOffset.