@uselingu/react-native-sdk 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @uselingu/react-native-sdk
|
|
2
2
|
|
|
3
3
|
> Lingu AI Chat SDK for React Native - Hybrid approach with WebView UI and native API
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/@uselingu/react-native-sdk)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
8
|
## Features
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
## Installation
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm install @
|
|
24
|
+
npm install @uselingu/react-native-sdk react-native-webview @react-native-async-storage/async-storage
|
|
25
25
|
# or
|
|
26
|
-
yarn add @
|
|
26
|
+
yarn add @uselingu/react-native-sdk react-native-webview @react-native-async-storage/async-storage
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### iOS Setup
|
|
@@ -43,7 +43,7 @@ No additional setup required.
|
|
|
43
43
|
```tsx
|
|
44
44
|
import React from 'react';
|
|
45
45
|
import { View } from 'react-native';
|
|
46
|
-
import { LinguChat } from '@
|
|
46
|
+
import { LinguChat } from '@uselingu/react-native-sdk';
|
|
47
47
|
|
|
48
48
|
export default function App() {
|
|
49
49
|
return (
|
|
@@ -119,7 +119,7 @@ function App() {
|
|
|
119
119
|
### Using the Hook
|
|
120
120
|
|
|
121
121
|
```tsx
|
|
122
|
-
import { useLinguChat } from '@
|
|
122
|
+
import { useLinguChat } from '@uselingu/react-native-sdk';
|
|
123
123
|
|
|
124
124
|
function CustomChat() {
|
|
125
125
|
const {
|
|
@@ -200,7 +200,7 @@ Low-level API client for direct API access.
|
|
|
200
200
|
### Basic Integration
|
|
201
201
|
|
|
202
202
|
```tsx
|
|
203
|
-
import { LinguChat } from '@
|
|
203
|
+
import { LinguChat } from '@uselingu/react-native-sdk';
|
|
204
204
|
|
|
205
205
|
<LinguChat apiKey="your-api-key-here" />
|
|
206
206
|
```
|
package/package.json
CHANGED