Looking to type a native module that I have developed.
Check out the interface for my module below:
export interface BBAudioPlayer {
playSound: (sound: 'click' | 'tada') => Promise<void>;
pause: () => Promise<void>;
}
Here's an example of how I utilize it:
NativeModules.BBAudioPlayer.playSound('tada');
Seeking guidance on extending NativeModules
to accommodate the types of my new module. How can this be achieved?