0.9.0 • Published 7 years ago

react-native-megacool v0.9.0

Weekly downloads
60
License
-
Repository
-
Last release
7 years ago

react-native-megacool

Getting started

$ npm install react-native-megacool --save

Mostly automatic installation

$ react-native link react-native-megacool

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-megacool and add RNMegacool.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNMegacool.a to your project's Build PhasesLink Binary With Libraries
  4. In XCode, in the project navigator, right click FrameworksAdd Files to [your project's name]
  5. Go to node_modulesreact-native-megacoolios and add Megacool.framework
  6. In XCode, go to Build Settings, search for Framework Search Paths and add $(PROJECT_DIR)/../node_modules/react-native-megacool/ios
  7. Run your project (Cmd+R)<

Android

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

Usage

import { Megacool, MegacoolPreview } from 'react-native-megacool';
0.9.0

7 years ago

0.8.1

7 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago