Skip to content

Example to follow #67

@keyz23

Description

@keyz23

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions