GithubHelp home page GithubHelp logo

Comments (5)

avkonst avatar avkonst commented on August 22, 2024 2

This is possible. I will have a look later. Busy now.

from hookstate.

avkonst avatar avkonst commented on August 22, 2024

Yes, it is possible but I need a bit of help from you. Local storate is used to set settings for enabling/disabling some stores being traced in devtools. I usually adjusted these settings using Chrome devtools and reloaded the app. What would be the alternative for RN?

from hookstate.

avkonst avatar avkonst commented on August 22, 2024

Can you pass some environment variables to the RN app? I could make the devtools reading the settings from either localstorage if available from the env variable.

from hookstate.

starlabs007 avatar starlabs007 commented on August 22, 2024

It's "somewhat" possible to pass environment variables to the RN app, but not out-of-the-box from a normal RN fresh setup. You'd have to either install and setup a babel plugin or some other third party library.

What about passing in a configuration settings object to devtools from within the RN app?

from hookstate.

avkonst avatar avkonst commented on August 22, 2024

Fixed on latest. Uses new API targeting version 2 of hookstate. The dev tools and the API v2 are documented here: https://hookstate.js.org/docs/devtools

I have not verified it with RN, because I do not have an environment. Let me know how it goes. If it still does not work, reopen the ticket.

from hookstate.

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.