1. git clone [email protected]:AmityCo/Amity-Social-Cloud-UIKit-React-Native-OpenSource.git
2. cd Amity-Social-Cloud-UIKit-React-Native-OpenSource
3. npm pack
This step will build the app and return amityco-asc-react-native-ui-kit-x.x.x.tgz.tgz file in inside the folder
Then, inside another project, where need to use ui-kit:
1. npm install ./../asc-react-native-ui-kit/amityco-asc-react-native-ui-kit-0.1.0.tgz
2. npm install [email protected] \ react-native-screens \ react-native-image-picker
expo install expo-image-picker \
expo-modules-core
npm install react-native-image-picker
import * as React from 'react';
import {
AppNavigator,
AmityUiKitProvider,
} from '@amityco/asc-react-native-ui-kit';
export default function App() {
return (
<AmityUiKitProvider
apiKey="API_KEY"
apiRegion="sg"
userId="userId"
displayName="displayName"
>
<AppNavigator />
</AmityUiKitProvider>
);
}
Please refer to our online documentation at https://docs.amity.co or contact a Ui-Kit representative at [email protected] for support.