0.3.4 • Published 8 months ago

@devlowkey/chat-sdk-react-native v0.3.4

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Lowkey Chat SDK React Native

Lowkey Chat SDK modules for React Native.

Installation

1. Install Lowkey packages:

npm i @devlowkey/chat-sdk-react-native @devlowkey/chat-sdk-core

2. Install peer dependencies:

  • @react-native-clipboard/clipboard
  • expo-image
  • react-native-reanimated
  • react-native-keyboard-controller
  • react-native-mmkv
  • react-native-quick-crypto
  • react-native-unistyles
  • react-native-gesture-handler
  • react-native-pager-view and react-native-tab-view

Note: If your app does not support New Architecture use lower versions of following packages:

"react-native-mmkv": "~2.12.2",

3. Configure SVG icons support:

  • install react-native-svg and react-native-svg-transformer
  • configure Metro as per instruction

Usage

1. Create Lowkey Chat client instance:

import { LowkeyChatClient } from '@devlowkey/chat-sdk-core';

export const lowkeyClient = LowkeyChatClient.getInstance({
  appId: 'YOUR LOWKEY APP ID',
  appKey: 'YOUR LOWKEY APP KEY',
});

2. Wrap your app with providers:

import { LowkeyChatProvider, LowkeyUiProvider } from '@devlowkey/chat-sdk-react-native';
...

  return (
    <LowkeyChatProvider lowkeyClient={lowkeyClient}>
      <LowkeyUiProvider
        // Example of UI themes customization
        themes={{
          light: {
            colors: {
              primary: 'green',
            },
            fonts: {
              regular: 'Arial',
              medium: 'Arial',
              semiBold: 'Arial',
              bold: 'Arial',
            }
          },
        }}>
        <YourApp />
      </LowkeyUiProvider>
    </LowkeyChatProvider>
  );

Now you can use the Lowkey SDK UI and features!

For more detailed examples please check our demo app on GitHub!

0.3.4

8 months ago

0.3.3

8 months ago

0.3.2

8 months ago

0.3.1

8 months ago

0.3.0

8 months ago

0.3.0-alpha.1

8 months ago

0.2.4

8 months ago

0.2.3

9 months ago

0.2.2

9 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.36

9 months ago

0.0.35

9 months ago

0.0.34

9 months ago

0.0.33

9 months ago

0.0.32

10 months ago

0.0.31

10 months ago

0.0.30

10 months ago

0.0.29

10 months ago

0.0.28

10 months ago

0.0.27

10 months ago

0.0.26

10 months ago

0.0.25

10 months ago

0.0.24

10 months ago

0.0.23

10 months ago

0.0.22

10 months ago

0.0.21

10 months ago

0.0.20

10 months ago

0.0.19

10 months ago

0.0.18

10 months ago

0.0.17

10 months ago

0.0.16

10 months ago

0.0.15

10 months ago

0.0.14

10 months ago

0.0.13

10 months ago

0.0.12

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago