react-native-agora-chat-room
v1.0.0-beta.0
Published
test
Readme
English | 中文
Introduction
ChatroomUIKit is designed to address most users' chat room requirements specific to pan-entertainment scenarios. It delivers good user experience in the use of APIs (for user-side developers) by streamlining the SDK integration, facilitating customization, and offering comprehensive documentation.
Development environment requirements
- MacOS 12 or higher
- React-Native 0.66 or higher
- NodeJs 16.18 or higher
For iOS app:
- Xcode 13 or higher and its related dependency tool.
For the Android app:
- Android Studio 2021 or higher and its related dependency tool.
Installation
npm install react-native-agora-chat-room
# or
yarn add react-native-agora-chat-roomDependencies
yarn add react-native-linear-gradient \
react-native-safe-area-contextQuick Start
Initialization
import { Container } from 'react-native-agora-chat-room';
export function App() {
return (
<Container opt={{ appKey: '<your app key>' }}>
{/** sub component */}
</Container>
);
}Join a room
export function ChatroomScreen() {
return (
<Chatroom roomId={'<room ID>'} ownerId={'<room owner ID>'}>
{/** sub component */}
</Chatroom>
);
}Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
