$ npm install react-native-here-maps-ios --save
$ react-native link react-native-here-maps-ios
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-here-maps-ios
and addRNHereMapsIos.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNHereMapsIos.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.reactlibrary.RNHereMapsIosPackage;
to the imports at the top of the file - Add
new RNHereMapsIosPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-here-maps-ios' project(':react-native-here-maps-ios').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-here-maps-ios/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-here-maps-ios')
- In Visual Studio add the
RNHereMapsIos.sln
innode_modules/react-native-here-maps-ios/windows/RNHereMapsIos.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Here.Maps.Ios.RNHereMapsIos;
to the usings at the top of the file - Add
new RNHereMapsIosPackage()
to theList<IReactPackage>
returned by thePackages
method
import RNHereMapsIos from 'react-native-here-maps-ios';
// TODO: What to do with the module?
RNHereMapsIos;