mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[android][auth] phoneAuth via EE implementation
This commit is contained in:
@@ -23,6 +23,7 @@ const NATIVE_MODULE_EVENTS = {
|
||||
],
|
||||
Auth: [
|
||||
'onAuthStateChanged',
|
||||
'phone_auth_event',
|
||||
],
|
||||
Database: [
|
||||
// 'database_on_event',
|
||||
@@ -133,6 +134,10 @@ export default class ModuleBase {
|
||||
return INTERNALS.SharedEventEmitter.addListener.bind(INTERNALS.SharedEventEmitter);
|
||||
}
|
||||
|
||||
get once() {
|
||||
return INTERNALS.SharedEventEmitter.once.bind(INTERNALS.SharedEventEmitter);
|
||||
}
|
||||
|
||||
get on() {
|
||||
return INTERNALS.SharedEventEmitter.addListener.bind(INTERNALS.SharedEventEmitter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user