1.0.4 • Published 5 years ago

react-native-test-library-damiansf v1.0.4

Weekly downloads
20
License
-
Repository
-
Last release
5 years ago

react-native-test-library

Basic toast test library for react native (Android only). Published on NPM https://www.npmjs.com/package/react-native-test-library-damiansf

Getting started

$ npm install react-native-test-library --save

Mostly automatic installation

$ react-native link react-native-test-library

Manual installation

Android

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

Usage

import RNTestLibrary from 'react-native-test-library';

// TODO: What to do with the module?
RNTestLibrary;
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago