[React Native] Installing and Linking Modules with Native Code in React Native
2017-02-16 02:28
465 查看
Learn to install JavaScript modules that include native code. Some React Native modules include native code for Android and/or iOS in addition to JavaScript. We'll install the react-native-video component using npm install, and then link it with the react-native link command so that our Video component works properly on both iOS and Android.
For example:
After you install the libaray, you also need to link it:
For example:
npm i --save react-native-video
After you install the libaray, you also need to link it:
react-native link react-native-video
相关文章推荐
- [React Native] Disable and Ignore Yellow Box Warnings in React Native
- [React Native] Writing Platform-Specific Components for iOS and Android in React Native
- Nullsoft Winamp Plug-in With Bitmapped UI, Docking and Restrictive Resizing - The Code Project - Dialog and Windows
- Understanding FastCGI and “Gotchas” with Running Native Code
- [Webpack + React] Import CSS Modules with TypeScript and webpack
- spring.data.jpa.query :Cannot use native queries with dynamic sorting and/or pagination in method
- [React Native] Use the SafeAreaView Component in React Native for iPhone X Compatibility
- Linking LAPACK and BLAS libraries with Fortran and C code
- [React Native] Animate Styles of a React Native View with Animated.timing
- SpringData JPA @Query分页查询 Cannot use native queries with dynamic sorting and/or pagination in method
- [React Native] Dismiss the Keyboard in React Native
- Using gdbserver and arm-eabi-gdb to debug native code in Android
- [React Native + Firebase] React Native: Real time database with Firebase -- setup & CRUD
- Walkthrough: Create and Run a Simple Windows Application In Native Code
- [React] Animate your user interface in React with styled-components and "keyframes"
- The development server returned response error code: 500 in react-native
- Android: Simplified source code for parsing and working with XML data and web services in Android
- Working with hashCode and equals methods in java
- react native Command /bin/sh failed with exit code 1( at process._tickCallback (node.js:336:13))
- [Python] Reuse Code in Multiple Projects with Python Modules