const CrispChatContainer: React.FC<chatContainer> = ({ style }) => {
// hooks
const { user } = useManageUser();
// states
configure(process?.env?.EXPO_PUBLIC_CRISP_WEBSITE_ID ?? "");
// this should be user ID that way app will load previous user chats
setTokenId(user?.user_id);
// Set user's info
setUserAvatar(user?.avatar ?? "");
setUserEmail(user?.email ?? "");
setUserNickname(user?.username);
setUserPhone(user?.phone);
// Call session reset when user loggs out
// resetSession();
return <CrispChat />;
};
Detailed check results:
Expected package @expo/config-plugins@~7.8.0
Found invalid:
@expo/config-plugins@4.1.5
@expo/config-plugins@7.2.5
(for more info, run: npm why @expo/config-plugins)
Expected package @expo/prebuild-config@~6.7.0
Found invalid:
@expo/prebuild-config@6.2.6
(for more info, run: npm why @expo/prebuild-config)
Expected package metro@~0.80.4
Found invalid:
metro@0.76.9
(for more info, run: npm why metro)
Expected package metro-resolver@~0.80.4
Found invalid:
metro-resolver@0.76.9
(for more info, run: npm why metro-resolver)
Expected package metro-config@~0.80.4
Found invalid:
metro-config@0.76.9
(for more info, run: npm why metro-config)
Advice: Upgrade dependencies that are using the invalid package versions and remove resolutions from package.json that are pinning metro and metro-resolver to an invalid version.
The following packages should be updated for best compatibility with the installed expo version:
@expo/prebuild-config@6.2.6 - expected version: ~6.7.0
expo@50.0.13 - expected version: ~50.0.14
expo-dev-client@3.3.10 - expected version: ~3.3.11
react-native@0.73.4 - expected version: 0.73.6
Your project may not work correctly until you install the correct versions of the packages.
Found outdated dependencies
Advice: Use 'npx expo install --check' to review and upgrade your dependencies.
I can't use the library with an expo dev-client
Can you please help me ?
After run
npx expo-env-info