whatsapp-auth
Version:
Module for authenticating applications via WhatsApp
20 lines • 618 B
JavaScript
import * as React from "react";
import { Platform, View } from "react-native";
let NativeView = null;
if (Platform.OS !== "web") {
try {
const { requireNativeView } = require("expo");
NativeView = requireNativeView("WhatsappAuth");
}
catch (error) {
console.warn("WhatsappAuth: Native view could not be loaded");
console.error(error);
}
}
export default function WhatsappAuthView(props) {
if (Platform.OS === "web" || !NativeView) {
return <View style={props.style}/>;
}
return <NativeView {...props}/>;
}
//# sourceMappingURL=WhatsappAuthView.js.map