Comments (6)
I have never used react-native. If you could provide me a sample project and instructions I can look into what is going on. Thanks.
from geopackage-js.
I have never used react-native. If you could provide me a sample project and instructions I can look into what is going on. Thanks.
Thanks for the reply.
The project I created is a project I created according to the introduction of react-native, with geopackage-js installed.
Other than that, I didn't do anything particularly special.
A simple project can be created as per the introduction in the link below.
https://reactnative.dev/docs/environment-setup
I've tried both "Expo CLI Quickstart" and "React Native CLI Quickstart".
The installation of geopackage-js was done with YARN.
yarn add @ngageoint/geopackage
Thanks.
from geopackage-js.
I will take a look at this when I get a chance.
from geopackage-js.
I will take a look at this when I get a chance.
thanks.
I am very troubled.
I look forward to hearing from you about the solution.
from geopackage-js.
OK, I took a cursory look at this and as far as I can tell, react native does not support standard node libraries like path etc. When I build for the web, I use browserify to properly include the web versions of these packages. I am unsure if there is a way to do that in react native. I, personally, have never had any good experiences with write once run anywhere type frameworks, but that does not mean it cannot be done or is not a good idea.
I would just say, if you are writing a web app, or a node app, use this library. If you are writing an iOS app, use http://ngageoint.github.io/geopackage-ios/ if you are writing an Android app, use http://ngageoint.github.io/geopackage-android/
If you continue down this path, and do end up figuring anything out, please let me know. BTW I have a new version of this library coming, which is written in TypeScript and depends on a newer build of better-sqlite3 which is precompiled. To install it, just run npm install @ngageoint/geopackage@beta --save
Sorry I couldn't be much help, I just have never used react native and am unsure of its capabilities or how to include regular node packages like fs and path.
from geopackage-js.
Thank you very much for the verification.
It may be difficult after all.
Using rn-nodeify, you can use the
"browserify", "fs", "path" and other packages can be included for react-native.
https://github.com/tradle/rn-nodeify.
I've been able to eliminate some of the errors that were occurring during package installation by using rn-nodeify.
I hope this is useful information.
from geopackage-js.
Related Issues (20)
- Remove console.log of geoPackageConnection HOT 1
- Incompatible with Node.js >= 14.0.0 HOT 2
- TypeError: GeoPackageAPI.open is not a function HOT 3
- node js code not working
- Running out of reserved function pointers
- Set GeoJson id from id property HOT 1
- geopackage.min.js not found HOT 1
- Install @ngageoint/geopackage on Docker node:17 HOT 4
- firefox issue, geopackage image not loading. HOT 1
- Convert GeoPackage to geojson HOT 3
- Create fails in browser HOT 1
- Example: Create a new GeoPackage HOT 2
- Unable to detect CRS, GeoJSON has no "crs" property
- implement SQL over HTTP HOT 1
- Getting tiles from a bounding box HOT 1
- Add data to existing GeoPackage HOT 3
- Column data type detection should be case insensitive
- Support for new OGC GPKG Extensions to support Vector Tiles PBF HOT 1
- unable to initialize canvas HOT 2
- How can i convert MBTile to Geopackage in the command line? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geopackage-js.