Example to follow
keyz23 opened this issue · 0 comments
keyz23 commented
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?