Merge branch 'master' of https://github.com/invertase/react-native-firebase
This commit is contained in:
commit
e985d7f153
@ -20,7 +20,7 @@ type OnMessageObserver = {
|
||||
next: OnMessage,
|
||||
};
|
||||
|
||||
type OnTokenRefresh = String => any;
|
||||
type OnTokenRefresh = string => any;
|
||||
|
||||
type OnTokenRefreshObserver = {
|
||||
next: OnTokenRefresh,
|
||||
@ -101,7 +101,7 @@ export default class Messaging extends ModuleBase {
|
||||
onTokenRefresh(
|
||||
nextOrObserver: OnTokenRefresh | OnTokenRefreshObserver
|
||||
): () => any {
|
||||
let listener: String => any;
|
||||
let listener: string => any;
|
||||
if (isFunction(nextOrObserver)) {
|
||||
// $FlowExpectedError: Not coping with the overloaded method signature
|
||||
listener = nextOrObserver;
|
||||
|
Loading…
x
Reference in New Issue
Block a user