react-native-test-library-two-way-comm-damiansf

1.0.8 • Public • Published

react-native-test-library-two-way-comm-

Basic toast test library for react native with two way comms (Android only). Published on NPM https://www.npmjs.com/package/react-native-test-library-two-way-comm-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;

Readme

Keywords

Package Sidebar

Install

npm i react-native-test-library-two-way-comm-damiansf

Weekly Downloads

3

Version

1.0.8

License

none

Unpacked Size

6.53 kB

Total Files

10

Last publish

Collaborators

  • dsandhuf