From 80d86c8dc453c16cabb402a0059be22b3fdab0bc Mon Sep 17 00:00:00 2001 From: Piotr Suwala Date: Tue, 19 Sep 2023 12:21:38 +0200 Subject: [PATCH] feat(lib): revert demo keys --- samples/react-native-group-chat/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/react-native-group-chat/App.tsx b/samples/react-native-group-chat/App.tsx index 1739085..d653a65 100644 --- a/samples/react-native-group-chat/App.tsx +++ b/samples/react-native-group-chat/App.tsx @@ -42,8 +42,8 @@ function TabNavigator({ route }: StackScreenProps) { useEffect(() => { async function init() { const chat = await Chat.init({ - publishKey: process.env.EXPO_PUBLIC_PUBNUB_PUB_KEY, - subscribeKey: process.env.EXPO_PUBLIC_PUBNUB_SUB_KEY, + publishKey: process.env.EXPO_PUBLIC_PUBNUB_PUB_KEY || "demo", + subscribeKey: process.env.EXPO_PUBLIC_PUBNUB_SUB_KEY || "demo", userId: name || "test-user", typingTimeout: 2000, storeUserActivityTimestamps: true,