$ npm install react-native-otv-plugin --save
react-native link is an automatic way for installing native dependencies. Not required for Web platforms.
$ react-native link react-native-otv-plugin
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-otv-plugin
and add RNOtvPlugin.xcodeproj
libRNOtvPlugin.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNOtvPluginPackage;
to the imports at the top of the filenew RNOtvPluginPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:include ':react-native-otv-plugin'
project(':react-native-otv-plugin').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-otv-plugin/android')
android/app/build.gradle
:compile project(':react-native-otv-plugin')
RNOtvPlugin.sln
in node_modules/react-native-otv-plugin/windows/RNOtvPlugin.sln
folder to their solution, reference from their app.MainPage.cs
appusing Otv.Plugin.RNOtvPlugin;
to the usings at the top of the filenew RNOtvPluginPackage()
to the List<IReactPackage>
returned by the Packages
methodimport RNOtvPlugin from 'react-native-otv-plugin';
// TODO: What to do with the module?
RNOtvPlugin;
Generated using TypeDoc