Giter Site home page Giter Site logo

mdcuk34 / react-native-library-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 5.0 262 KB

A React Native library boilerplate tailored to wrapping SDKs

JavaScript 23.26% Python 8.72% Java 25.62% Objective-C 21.35% Ruby 3.07% C# 17.99%
react-native react-native-library react-native-module android react

react-native-library-boilerplate's People

Contributors

mdcuk34 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-native-library-boilerplate's Issues

Error on getValue() in javscript(App.js)

I am trying to build a react-native SDK wrapper for the react-native app.

I have encountered your article on medium.

It is so helpful.

I have followed all steps but eventually stuck on this error:

null is an object evaluating reactntivetestlib.defult.getvalue

Here is the screenshot of error

get undefined on getConstants() method.

Hi, I'm trying to get a String constant defined in the Native Module from my App.js

RNMyClassModule.java

@Override public Map<String, Object> getConstants() { final Map<String, Object> constants = new HashMap<>(); constants.put("PROD", "prod"); constants.put("STA", "sta"); return constants; }

this is my native module, I can access to methods but only constants not work.

App.js

console.log(RNMyClass.PROD) -> on this I get undefined.

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.