react-native/docs
Pavol Fulop 8b9df81c27 Provide example of android side implementation of HeadlessJS
Summary:
Thanks for submitting a PR! Please read these instructions carefully:

- [x] Explain the **motivation** for making this change.
- [ ] Provide a **test plan** demonstrating that the code is solid.
- [ ] Match the **code formatting** of the rest of the codebase.
- [ ] Target the `master` branch, NOT a "stable" branch.

The existing documentation on this topic doesn't provide enough of detail on where to start a headlessJS task.

Just docs change

This PR extends HeadlessJS documentation to show an example on how to start HeadlessJsTaskService. Sample code in example reacts to connectivity change using custom broadcast receiver logic that bundles additional information and starts the aforementioned service.
Closes https://github.com/facebook/react-native/pull/13957

Differential Revision: D5746809

Pulled By: hramos

fbshipit-source-id: 3eeea7d4a71382acf4b6f7ad1b99d20e2745c558
2017-08-31 11:19:34 -07:00
..
Accessibility.md New guide: Improving User Experience 2017-08-24 14:01:53 -07:00
AndroidBuildingFromSource.md Link to main Android NDK website 2017-08-18 13:29:31 -07:00
AndroidUIPerformance.md Merge Android UI Performance into Performance doc, reorder sidebar 2017-03-06 10:10:04 -08:00
Animations.md Adding documentation to useNativeDriver portion of the Animated API 2017-08-04 15:41:01 -07:00
BuildingForAppleTV.md Apple TV: RCTTabBar selection controlled by native after render (fix #15081) 2017-08-10 05:36:06 -07:00
Colors.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
CommunicationIOS.md Fix typo 2017-06-14 02:03:27 -07:00
ComponentsAndAPIs.md Breaking - Remove AdSupportIOS 2017-07-26 13:32:41 -07:00
Contributing.md Cleanup stray markdown files, update contributing guidelines 2017-08-04 16:18:01 -07:00
Debugging.md Add proper Stetho debugging setup documentation 2017-08-04 16:47:00 -07:00
DirectManipulation.md Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
GestureResponderSystem.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
GettingStarted.md Update GettingStarted.md 2017-08-19 15:17:43 -07:00
HandlingTextInput.md Retry for #14830 - Fix "Handling Text Input" tutorial's "next" within text 2017-07-24 10:15:47 -07:00
HandlingTouches.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
HeadlessJSAndroid.md Provide example of android side implementation of HeadlessJS 2017-08-31 11:19:34 -07:00
HeightAndWidth.md Update examples in docs and address version lag of CRNA 2017-05-16 23:51:28 -07:00
Images.md Update Images.md with ImageBackground 2017-07-23 08:45:44 -07:00
ImprovingUserExperience.md New guide: Improving User Experience 2017-08-24 14:01:53 -07:00
IntegrationWithExistingApps.md BREAKING: iOS: Fix case sensitivity build warning in Xcode 8.3 2017-08-25 04:45:06 -07:00
JavaScriptEnvironment.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
LayoutWithFlexbox.md Update examples in docs and address version lag of CRNA 2017-05-16 23:51:28 -07:00
LinkingLibraries.md Fix typo 2017-08-10 03:21:07 -07:00
Maintainers.md Flag large pull requests, add large-pr command 2017-08-16 21:00:44 -07:00
MoreResources.md Move CONTRIBUTING guidelines to a standalone doc in the website. 2017-07-19 10:23:06 -07:00
MoviesExample.json Fix typo and add comments to the example app 2015-03-27 20:44:20 +00:00
NativeComponentsAndroid.md fix typo 2017-08-04 11:05:02 -07:00
NativeComponentsIOS.md Note about flex 2017-08-16 23:44:50 -07:00
NativeMethodsMixin.md Flat ReactNative renderer bundle [WIP] 2017-05-26 11:03:06 -07:00
NativeModulesAndroid.md Added documentation for iOS app extensions 2017-07-28 12:36:14 -07:00
NativeModulesIOS.md document how to export consts from a swift native module 2017-08-03 13:13:25 -07:00
Navigation.md Update Navigation.md 2017-07-24 11:31:01 -07:00
Networking.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
Performance.md Add pertinent info for fresh flatlisters 2017-08-07 17:58:42 -07:00
PlatformSpecificInformation.md Add a section about Platform.Version on iOS 2017-06-15 09:21:18 -07:00
Props.md Standardize on using AwesomeProject for AppRegistry calls. 2017-05-30 14:20:42 -07:00
RunningOnDevice.md troubleshooting docs (clone #14885) 2017-08-04 09:50:02 -07:00
RunningOnDeviceAndroid.md Consolidate Running on Device (Android|iOS) Guides into one 2016-11-06 21:13:32 -08:00
RunningOnDeviceIOS.md Consolidate Running on Device (Android|iOS) Guides into one 2016-11-06 21:13:32 -08:00
RunningOnSimulatorIOS.md Merge Android UI Performance into Performance doc, reorder sidebar 2017-03-06 10:10:04 -08:00
SignedAPKAndroid.md Uninstall app before testing the production build 2017-06-23 20:31:17 -07:00
State.md Standardize on using AwesomeProject for AppRegistry calls. 2017-05-30 14:20:42 -07:00
Style.md Standardize on using AwesomeProject for AppRegistry calls. 2017-05-30 14:20:42 -07:00
StyleGuide.md What to Expect from Maintainers 2017-07-28 08:18:53 -07:00
Testing.md Cleanup stray markdown files, update contributing guidelines 2017-08-04 16:18:01 -07:00
Timers.md New guide: Improving User Experience 2017-08-24 14:01:53 -07:00
TodayWidget.md Added documentation for iOS app extensions 2017-07-28 12:36:14 -07:00
Troubleshooting.md Add Troubleshooting Guide to Sidebar. 2017-08-25 15:30:43 -07:00
Tutorial.md Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
UnderstandingCLI.md What to Expect from Maintainers 2017-07-28 08:18:53 -07:00
Upgrading.md Add Troubleshooting Guide to Sidebar. 2017-08-25 15:30:43 -07:00
UsingAListView.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
UsingAScrollView.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00