forked from dayitv89/react-native-quick-firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
23 lines (19 loc) · 677 Bytes
/
index.js
File metadata and controls
23 lines (19 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'use strict';
import { TurboModuleRegistry } from 'react-native';
const bridge = TurboModuleRegistry.getEnforcing('RNQuickFirebase');
const sendOTP = (phone) => bridge.sendOTP(phone);
const validateOTP = (otp) => bridge.validateOTP(otp);
const signOut = () => bridge.signOut();
const setAnalyticsEnabled = (enabled) => bridge.setAnalyticsEnabled(enabled);
const setUserId = (id) => bridge.setUserId(id);
const setUserProperty = (name, property) => bridge.setUserProperty(name, property);
const logEvent = (name, params) => bridge.logEvent(name, params);
module.exports = {
sendOTP,
validateOTP,
signOut,
setAnalyticsEnabled,
setUserId,
setUserProperty,
logEvent,
};