developmentseed / developmentseed/field-data-collection
react-native prototype
- Dominant language
- Objective-C
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
So far I've been having issues getting react-native and osm-p2p working together.
The challenge is getting react-native to run node modules.
Here are some things I've tried:
- [rn-nodeify](https://github.com/mvayngrib/rn-nodeify) – I believe I did everything correctly, but it still didn't recognize modules and global variables that should have been caught by the shim.js file. This also takes an approach that seems inappropriate: rewriting package.json files of dependencies.
- [ReactNativify](https://github.com/philikon/ReactNativify) – this is documentation of an approach one can take to transform source files to rewrite import statements to point to the desired dependencies. But it looks like this approach doesn't work as expected with latest react-native, v0.43: https://github.com/mhzed/react-native-sm-transformer/issues/2
- [haul](https://github.com/callstack-io/haul) – haul is a command-line tool that replaces react-native's built-in packager. It was promising, but still gave a mysterious `TypeError` that traced to the messages.js file in hyperlog.
react-native doesn't support indexeddb, but that should be solved with the `react-native-level` module: https://github.com/developmentseed/field-data-collection/blob/master/prototypes/react-native/FieldDataCollection/lib/osm-p2p.js
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.