Learning React Native: Building Native Mobile Apps with JavaScript by Bonnie Eisenman

Learning React Native: Building Native Mobile Apps with JavaScript by Bonnie Eisenman

Author:Bonnie Eisenman [Eisenman, Bonnie]
Language: eng
Format: azw3, epub, pdf
Publisher: O'Reilly Media
Published: 2017-10-23T04:00:00+00:00


react-native link

What does react-native link do? It makes modifications to the underlying iOS and Android projects. For iOS, this might entail edits to AppDelegate.m and the Xcode project file. For Android, this might include changes to MainApplication.java, settings.gradle, and build.gradle. Typically a module will specify this requirement in its installation instructions.

Note that react-native link will work only with projects generated via react-native init or applications created with create-react-native-app that have since been ejected. Migrating from a create-react-native-app project to a full React Native project is discussed in “Ejecting from Expo”.

If you are not working with an autogenerated application, you’ll need to manually update your project files according to the instructions provided by the module authors.

Now that we have installed the react-native-video module, let’s test it out. You’ll need any MP4 video file for this step. I used a public-domain video from Flickr.

MP4 assets work just like images in React Native, so you can load the video file like so:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.