Skip to content

React native#49

Draft
KhanIAtlas wants to merge 57 commits intomasterfrom
react-native
Draft

React native#49
KhanIAtlas wants to merge 57 commits intomasterfrom
react-native

Conversation

@KhanIAtlas
Copy link
Copy Markdown

No description provided.

matti-ida and others added 30 commits March 10, 2021 12:41
Add React.Native support using https://github.com/remobile/react-native-cordova
Idea is to keep this in different branch from master Cordova branch, but merging changes should be relatively easy/conflict free.

Basicly setup for existing project should be as easy as adding react-native-indooratlas dep to package.json (pointing to react-native branch in github repo) and to iOS/Android build files.
```
    "react-native-indooratlas": "git+https://github.com/indooratlas/cordova-plugin.git#react-native",
```
then run `yarn install`.

iOS:
add pod deps to Podfile
```
  pod 'RCTCordova', :path => '../node_modules/@remobile/react-native-cordova/ios'
  pod 'RCTIndoorAtlas', :path => '../node_modules/react-native-indooratlas/src/ios'
```
and run `pod install`.

Android:
add projects to settings.gradle:
```
include ':react-native-cordova'
project(':react-native-cordova').projectDir = file('../node_modules/@remobile/react-native-cordova/android')

include ':react-native-indooratlas'
project(':react-native-indooratlas').projectDir = file('../node_modules/react-native-indooratlas/src/android')
```
add react-native-indooratlas dep to app/build.gradle:
```
    implementation project(':react-native-indooratlas') 
```

Probably should marked as "alpha" or "experimental" or something.
* Update to SDK 3.4.7

* Update README
In the react-native branch the leading { of the package.json file is missing.
NOTE! To enable the callbacks, please contact IndoorAtlas support.
@matti-ida matti-ida marked this pull request as draft August 27, 2024 08:13
React Native: SDK 3.7.0 wayfinding tags support 

Sync with master / Cordova branch:
- Update to SDK 3.7.0
- Implement wayfinding tags / accessible routing APIs
- Fix initialize() callback when already initialized
- some other init/destroy robustness fixes
- remove unused heading callbacks code
- disable heading callbacks from SDK
- set default orientation threshold to 10 degrees to reduce JSON serialization overhead when orientation is not even needed (same as CPA default)
- remember SDK status on iOS to match Android

This also fixes hot reloading.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants