my_first_rn_module_toast

## Getting started

Usage no npm install needed!

<script type="module">
  import myFirstRnModuleToast from 'https://cdn.skypack.dev/my_first_rn_module_toast';
</script>

README

my_first_rn_module_toast

Getting started

$ npm install my_first_rn_module_toast --save

Mostly automatic installation

$ react-native link my_first_rn_module_toast

Manual installation

iOS

  1. In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]
  2. Go to node_modules ➜ my_first_rn_module_toast and add RNMyFirstModule.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNMyFirstModule.a to your project's Build Phases ➜ Link Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNMyFirstModulePackage; to the imports at the top of the file
  • Add new RNMyFirstModulePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':my_first_rn_module_toast'
    project(':my_first_rn_module_toast').projectDir = new File(rootProject.projectDir, 	'../node_modules/my_first_rn_module_toast/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':my_first_rn_module_toast')
    

Usage

import RNMyFirstModule from 'my_first_rn_module_toast';

// TODO: What to do with the module?
RNMyFirstModule;