1.0.2 • Published 1 year ago

react-native-custom-toast-test v1.0.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

react-native-customtoast

Getting started

$ npm install react-native-customtoast --save

Mostly automatic installation

$ react-native link react-native-customtoast

Manual installation

Android

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

Usage

import RNCustomtoast from 'react-native-customtoast';

// TODO: What to do with the module?
RNCustomtoast;
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago