diff --git a/releases/next/docs/linking.html b/releases/next/docs/linking.html index 3e191e279bf..0ce70690c9f 100644 --- a/releases/next/docs/linking.html +++ b/releases/next/docs/linking.html @@ -60,7 +60,9 @@ execution you'll need to add the following lines to your *AppDelegate }).catch(err => console.error('An error occurred', err));

Methods #

constructor() #

addEventListener(type, handler) #

Add a handler to Linking changes by listening to the url event type and providing the handler

removeEventListener(type, handler) #

Remove a handler by passing the url event type and the handler

openURL(url) #

Try to open the given url with any of the installed apps.

You can use other URLs, like a location (e.g. "geo:37.484847,-122.148386" on Android or "http://maps.apple.com/?ll=37.484847,-122.148386" on iOS), a contact, -or any other URL that can be opened with the installed apps.

NOTE: This method will fail if the system doesn't know how to open the specified URL. +or any other URL that can be opened with the installed apps.

The method returns a Promise object. If the user confirms the open dialog or the +url automatically opens, the promise is resolved. If the user cancels the open dialog +or there are no registered applications for the url, the promise is rejected.

NOTE: This method will fail if the system doesn't know how to open the specified URL. If you're passing in a non-http(s) URL, it's best to check {@code canOpenURL} first.

NOTE: For web URLs, the protocol ("http://", "https://") must be set accordingly!

canOpenURL(url) #

Determine whether or not an installed app can handle a given URL.

NOTE: For web URLs, the protocol ("http://", "https://") must be set accordingly!

NOTE: As of iOS 9, your app needs to provide the LSApplicationQueriesSchemes key inside Info.plist or canOpenURL will always return false.

@param URL the URL to open

getInitialURL() #

If the app launch was triggered by an app link, it will give the link url, otherwise it will give null

NOTE: To support deep linking on Android, refer http://developer.android.com/training/app-indexing/deep-linking.html#handling-intents

You can edit the content above on GitHub and send us a pull request!

← PrevNext →

Picker #

Renders the native picker component on iOS and Android. Example:

<Picker selectedValue={this.state.language} - onValueChange={(lang) => this.setState({language: lang})}> + onValueChange={(itemValue, itemIndex) => this.setState({language: itemValue})}> <Picker.Item label="Java" value="java" /> <Picker.Item label="JavaScript" value="js" /> </Picker>

Props #

onValueChange?: Function #

Callback for when an item is selected. This is called with the following parameters: