1.11.0 • Published 4 years ago

my_first_rn_module_toast v1.11.0

Weekly downloads
57
License
-
Repository
-
Last release
4 years ago

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 LibrariesAdd Files to [your project's name]
  2. Go to node_modulesmy_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 PhasesLink 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;
1.9.0

4 years ago

1.8.0

4 years ago

1.11.0

4 years ago

1.10.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.4.0

4 years ago

1.2.0

4 years ago

1.3.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago