Giter Site home page Giter Site logo

Comments (6)

danielbarela avatar danielbarela commented on May 21, 2024

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.

chtk3131 avatar chtk3131 commented on May 21, 2024

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.

danielbarela avatar danielbarela commented on May 21, 2024

I will take a look at this when I get a chance.

from geopackage-js.

chtk3131 avatar chtk3131 commented on May 21, 2024

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.

danielbarela avatar danielbarela commented on May 21, 2024

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.

chtk3131 avatar chtk3131 commented on May 21, 2024

@danielbarela

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.