Skip to main content

Manual linking

Make sure to have react-natie-share installed.

iOS#

Project linking#

  1. Open your project .xcodeproj on xcode.

  2. Right click on the Libraries folder and select Add files to "yourProjectName".

  3. Add FeedbackReporter.xcodeproj (located at node_modules/react-native-feedback-reporter/ios) to your project Libraries.

  4. Go to Build Phases -> Link Binary with Libraries and add: libFeedbackReporter.a.

Using 'Pods'#

  1. Enter into iOS Folder cd ios/ (on your project's root folder).

  2. Add this line to your Podfile just below the last pod (if you don't have one, you can create it by running pod init):

+ pod 'FeedbackReporter', :path => '../node_modules/react-native-feedback-reporter'
  1. Run pod install

Android#

  1. Add project to android/settings.gradle:
rootProject.name = 'MyApp'
include ':app'
+ include ':react-native-feedback-reporter'
+ project(':react-native-feedback-reporter').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-feedback-reporter/android')
  1. In android/app/build.gradle add to dependencies:
dependencies {
...
+ implementation project(':react-native-feedback-reporter')
}
  1. Then, in android/app/src/main/java/your/package/MainApplication.java:
package com.myapp;
+ import com.reactnativefeedbackreporter.FeedbackReporterPackage;
...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
+ new FeedbackReporterPackage()
);
}