1.0.3 • Published 5 years ago

react-native-waltz-rn-test v1.0.3

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

react-native-waltz-rn-test

Getting started

$ npm install react-native-waltz-rn-test --save

Mostly automatic installation

$ react-native link react-native-waltz-rn-test

Manual installation

You'll need cocoapods to use this

pod init

//in Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '9.3'

# ignore all warnings from all pods
inhibit_all_warnings!

source 'https://github.com/WaltzApp/Podspecs.git'
source 'https://github.com/CocoaPods/Specs.git'

target 'waltzTest' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  use_frameworks!

  pod 'WaltzAccess', :inhibit_warnings => true

end

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-waltz-rn-test and add RNWaltzRnTest.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNWaltzRnTest.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)< 5. Remove test target*

Android

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

Windows

Read it! :D

  1. In Visual Studio add the RNWaltzRnTest.sln in node_modules/react-native-waltz-rn-test/windows/RNWaltzRnTest.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using Waltz.Rn.Test.RNWaltzRnTest; to the usings at the top of the file
  • Add new RNWaltzRnTestPackage() to the List<IReactPackage> returned by the Packages method

Usage

import RNWaltzRnTest from 'react-native-waltz-rn-test';

// TODO: What to do with the module?
RNWaltzRnTest;
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago