Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example to follow #67

Open
keyz23 opened this issue Feb 27, 2020 · 0 comments
Open

Example to follow #67

keyz23 opened this issue Feb 27, 2020 · 0 comments

Comments

@keyz23
Copy link

keyz23 commented Feb 27, 2020

Hi guys, Anyone has an example that I could follow? I have tried to combine with https://reactnative.dev/docs/native-modules-android documentation, but I don't know how to do with other library.

I don't understand what I should put in:

 public ProgressBarModule(ReactApplicationContext context) {
        // Pass in the context to the constructor and save it so you can emit events
        // https://facebook.github.io/react-native/docs/native-modules-android.html#the-toast-module
        super(context);

        reactContext = context;
    }

and there:

@Override
    public Map<String, Object> getConstants() {
        // Export any constants to be used in your native module
        // https://facebook.github.io/react-native/docs/native-modules-android.html#the-toast-module
        final Map<String, Object> constants = new HashMap<>();

        return constants;
    }

Could you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant