TypeError: undefined is not an object (evaluating ‘_$$_REQUIRE(_dependencyMap[2], “@amityco/react-native-chat-ui-kit”).AmityUiKitProvider’)
is the uikit depend on expo only ?
TypeError: undefined is not an object (evaluating ‘_$$_REQUIRE(_dependencyMap[2], “@amityco/react-native-chat-ui-kit”).AmityUiKitProvider’)
is the uikit depend on expo only ?
@Ahmed_khalifa Let me check this with my team and i’ll back to you soon.
@Ahmed_khalifa Based on your issue, we can only use Expo. However, if you wish to use React Native CLI, please check this link: GitHub - AmityCo/Amity-Chat-UIKit-React-Native-CLI-OpenSource: Amity Social Cloud offers Chat and Social SDKs to streamline app development. Dive into our UI Kits and sample apps in our repositories to spark your creativity. To learn more, visit amity.co.
when i do steps of documentation
git clone GitHub - AmityCo/Amity-Chat-UIKit-React-Native-CLI-OpenSource: Amity Social Cloud offers Chat and Social SDKs to streamline app development. Dive into our UI Kits and sample apps in our repositories to spark your creativity. To learn more, visit amity.co.
then navigate to file Amity-Chat-UIKit-React-Native-CLI-OpenSource
then do ==> yarn
then do ==> cd … && yarn pack
it return file which name package.tgz then i copied to main app root and do yarn add ./package.tgz
it return in package.json “@amityco/react-native-chat-ui-kit”: “./package.tgz” which depend on expo not cli
what is the issue in steps?
@Ahmed_khalifa Let me pass this to check with my team and i’ll back to you.
@Ahmed_khalifa We recommend using npm pack
instead of yarn pack
. To import the necessary components, please use the following code:
import {
AmityUiKitChat,
AmityUiKitProvider,
} from '@amityco/react-native-cli-chat-ui-kit';