InteractionManager#Events

Events: CallExpression

InteractionManager#addListener

addListener: CallExpression

IntentAndroid.openURL()

static openURL(url) Starts a corresponding external activity for the given URL. For example, if the URL is "https://www.facebook.com", the system browser will be opened, or the "choose application" dialog will be shown. You can use other URLs, like a location (e.g. "geo:37.484847,-122.148386"), a contact, or any other URL that can be opened with {@code Intent.ACTION_VIEW}. 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)

IntentAndroid.getInitialURL()

static getInitialURL(callback) If the app launch was triggered by an app link with {@code Intent.ACTION_VIEW}, it will give the link url, otherwise it will give null Refer http://developer.android.com/training/app-indexing/deep-linking.html#handling-intents @deprecated

IntentAndroid.canOpenURL()

static canOpenURL(url, callback) Determine whether or not an installed app can handle a given URL. You can use other URLs, like a location (e.g. "geo:37.484847,-122.148386"), a contact, or any other URL that can be opened with {@code Intent.ACTION_VIEW}. NOTE: For web URLs, the protocol ("http://", "https://") must be set accordingly! @param URL the URL to open @deprecated

Integrating with Existing Apps

Since React makes no assumptions about the rest of your technology stack, it's easily embeddable within an existing non-React Native app. Requirements an existing, gradle-based Android app Node.js, see Getting Started for setup instructions Prepare your app In your app's build.gradle file add the React Native dependency: compile "com.facebook.react:react-native:+" // From node_modules In your project's build.gradle file add an entry for the local React Native maven directory: allprojects

Integrating with Existing Apps

Since React makes no assumptions about the rest of your technology stack – it’s commonly noted as simply the V in MVC – it’s easily embeddable within an existing non-React Native app. In fact, it integrates with other best practice community tools like CocoaPods. Requirements CocoaPods – gem install cocoapods Node.jsInstall nvm with its setup instructions here. Then run nvm install node && nvm alias default node, which installs the latest version of Node.js and sets up your termina

Images

Static Image Resources As of 0.14 release, React Native provides a unified way of managing images in your iOS and Android apps. To add a static image to your app, place it somewhere in your source code tree and reference it like this: <Image source={require('./my-icon.png')} /> The image name is resolved the same way JS modules are resolved. In the example above the packager will look for my-icon.png in the same folder as the component that requires it. Also if you have my-icon.ios.png

Image.prefetch()

static prefetch(url: string) Prefetches a remote image for later use by downloading it to the disk cache

Image.getSize()

static getSize(uri: string, success: (width: number, height: number) => void, failure: (error: any) => void) Retrieve the width and height (in pixels) of an image prior to displaying it. This method can fail if the image cannot be found, or fails to download. In order to retrieve the image dimensions, the image may first need to be loaded or downloaded, after which it will be cached. This means that in principle you could use this method to preload images, however it is not optimized f