[WIP] Support react-native-dom (#1253)

Add support for react-native-dom
This commit is contained in:
Hampton Maxwell
2018-09-27 16:03:45 -07:00
committed by GitHub
parent d9eef0fd51
commit 75e3a77d59
8 changed files with 433 additions and 0 deletions

View File

@@ -192,6 +192,31 @@ using System.Collections.Generic;
```
</details>
<details>
<summary>DOM</summary>
Make the following additions to the given files manually:
**dom/bootstrap.js**
Import RCTVideoManager and add it to the list of nativeModules:
```javascript
import { RNDomInstance } from "react-native-dom";
import { name as appName } from "../app.json";
import RCTVideoManager from 'react-native-video/dom/RCTVideoManager'; // Add this
// Path to RN Bundle Entrypoint ================================================
const rnBundlePath = "./entry.bundle?platform=dom&dev=true";
// React Native DOM Runtime Options =============================================
const ReactNativeDomOptions = {
enableHotReload: false,
nativeModules: [RCTVideoManager] // Add this
};
```
</details>
## Usage
```javascript