Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions ui-kit/react-native/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ To get started, open `terminal` and create a new project using below command.
<Tabs>
<Tab title="Bash">
```sh
npx @react-native-community/cli init ChattingApp
npx @react-native-community/cli init ChatApp
```

<Warning>
Expand Down Expand Up @@ -93,6 +93,9 @@ npm i react-native-svg
npm i react-native-video
npm i dayjs
npm i @react-native-async-storage/async-storage
npm i react-native-gesture-handler
npm i react-native-localize

```

</Tab>
Expand Down Expand Up @@ -306,10 +309,13 @@ import {
CometChatUiKitConstants,
UIKitSettings,
CometChatThemeProvider,
CometChatI18nProvider,
} from "@cometchat/chat-uikit-react-native";
import { CometChat } from "@cometchat/chat-sdk-react-native";

import Messages from "./src/components/Messages";
import Messages from "./Messages";

import { GestureHandlerRootView } from 'react-native-gesture-handler';

/* -------------------------------------------------------------------------- */
/* ⚙️ Replace the placeholders below with your own CometChat credentials. */
Expand Down Expand Up @@ -369,6 +375,10 @@ const App = (): React.ReactElement => {
/* Render */
/* ------------------------------------------------------------------ */
return (

<GestureHandlerRootView style={{ flex: 1 }}>
<CometChatI18nProvider>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation issue


<SafeAreaView style={styles.fullScreen}>
<CometChatThemeProvider>
{/* Show conversations only after the user is logged in */}
Expand Down Expand Up @@ -412,6 +422,9 @@ const App = (): React.ReactElement => {
)}
</CometChatThemeProvider>
</SafeAreaView>

</CometChatI18nProvider>
</GestureHandlerRootView>
);
};

Expand Down