Mobile SDK Integration Guide
Mobile SDK Integration Guide
Step 1: Install WebView
npm install react-native-webview
# or
yarn add react-native-webviewcd ios && pod install && cd ..https://app.askclio.aiExample Usage
import React from "react";
import { StyleSheet, View } from "react-native";
import { WebView } from "react-native-webview";
export default function AskClioScreen() {
const clientId = "abc_123"; // replace with your actual client_id
const url = `https://app.askclio.ai?client_id=${encodeURIComponent(
clientId
)}&is_wide=true`;
return (
<View style={styles.container}>
<WebView
source={{ uri: url }}
style={styles.webview}
javaScriptEnabled
domStorageEnabled
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
webview: {
flex: 1,
},
});
Step 2: Customization Options
Step 3: Final Verification
Last updated