1.0.5 • Published 3 years ago

@jamster/react-native-toast v1.0.5

Weekly downloads
13
License
MIT
Repository
-
Last release
3 years ago

@jamster/react-native-toast

Getting started

$ npm install @jamster/react-native-toast --save

Mostly automatic installation

$ react-native link @jamster/react-native-toast

Manual installation

iOS

This is not currently supported.

Android

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

Usage

import JsToast from '@jamster/react-native-toast'

// TODO: What to do with the module?
JsToast.show('Awesome', JsToast.LONG)
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago