# @clio-ai/clio-react-native

> Clio SDK for React Native

Latest version **0.1.5** (published 2024-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @clio-ai/clio-react-native
pnpm add @clio-ai/clio-react-native
yarn add @clio-ai/clio-react-native
bun add @clio-ai/clio-react-native
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2024-05-22 |
| First published | 2023-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 18.0.0 |
| Dependencies | 1 |
| Unpacked size | 26 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Clio |
| Maintainers | vladaskclio, 0xcyberpaul, dennis-cybertowel, andrenorman |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/@clio-ai/clio-react-native
- Repository: https://github.com/brokerai/clio-react-native
- Homepage: https://github.com/brokerai/clio-react-native#readme
- Issues: https://github.com/brokerai/clio-react-native/issues
- npm.io page: https://npm.io/package/@clio-ai/clio-react-native

## Dependencies (1)

- [react-native-webview](https://npm.io/package/react-native-webview.md) ^13.6.3

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.5 (latest) — 2024-05-22
- 0.1.4 — 2024-05-22
- 0.1.3 — 2024-01-05
- 0.1.2 — 2023-12-20
- 0.1.1 — 2023-12-20
- 0.1.0 — 2023-12-18

## README

# clio-react-native

[Clio](https://askclio.ai) SDK for React Native

## Installation

```sh
npm install clio-react-native
```

or

```sh
yarn add clio-react-native
```

## Usage

```js
import * as React from 'react';

import { StyleSheet, View, Button } from 'react-native';
import { ChatModal } from 'clio-react-native';

export default function App() {
  //const { presentChat } = useClio();
  const [chatVisible, setVisible] = React.useState(false);

  function openChat() {
    setVisible(true);
  }

  function closeChat() {
    setVisible(false);
  }

  return (
    <View style={styles.container}>
      <Button title="Open Chat" onPress={openChat}>
        Open Chat
      </Button>

      <ChatModal
        visible={chatVisible}
        accountToken="accountToken1"
        clientId="clientId1"
        closeChat={closeChat}
        host="<youraccount>.askclio.ai"
        companyName="<youraccount>"
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  box: {
    width: 60,
    height: 60,
    marginVertical: 20,
  },
});
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---
_Source: https://npm.io/package/@clio-ai/clio-react-native · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
