Skip to content

Commit 6e55912

Browse files
committed
Merge branch 'develop' of https://github.com/GetStream/stream-chat-react-native into develop
2 parents 5d4c902 + c5fc2a3 commit 6e55912

File tree

41 files changed

+951
-605
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+951
-605
lines changed

docusaurus/docs/reactnative/basics/troubleshooting.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ allprojects {
174174
}
175175

176176
google()
177-
jcenter()
178177
maven { url 'https://maven.google.com' }
179178
maven { url 'https://www.jitpack.io' }
180179
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
id: debug-mode-using-flipper-plugin
3+
sidebar_position: 2
4+
title: Debug Stream Chat Application using Flipper plugin
5+
---
6+
7+
## Overview
8+
9+
Flipper is a platform for debugging iOS, Android and React Native apps. You can debug Stream Chat within your application by using our interface within the Flipper Desktop app. This will help you analyze multiple parameters of the application which are a part of Stream Chat React Native interface.
10+
11+
## Features:
12+
13+
- Viewing the authenticated client in the Chat.
14+
- Viewing the Channels, Message and Thread list data as we navigate through the screen.
15+
- Copying and visualizing all the data.
16+
17+
These features are part of the 1st version of this plugin. More features will be added in the future, may you have any ideas/suggestions, please reach out via the [SDK's discussions page](https://github.com/GetStream/stream-chat-react-native/discussions)
18+
19+
## How to do so?
20+
21+
- Firstly, you would need to install the Flipper plugin within your Desktop client. To do so, follow these steps:
22+
23+
- Download the Flipper Desktop app from [here](https://fbflipper.com/).
24+
- After downloading the desktop app, move to **Plugin Manager** section of the app and then select the **Install Plugins** tab.
25+
- Search for **stream-chat-react-native** and you will find this plugin.
26+
- Click on Install to install it.
27+
28+
- Next, we will need to install `stream-chat-react-native-devtools` to your application as a dev dependency. This dependency will make communication possible between the RN Stream Chat SDK and the flipper plugin.
29+
30+
```
31+
yarn add --dev stream-chat-react-native-devtools
32+
```
33+
34+
or
35+
36+
```
37+
npm install --save-dev stream-chat-react-native-devtools
38+
```
39+
40+
- To interact with the Flipper Plugin you need an additional dependency `react-native-flipper`. You can install it as a dev dependency, as:
41+
42+
```
43+
yarn add --dev react-native-flipper
44+
```
45+
46+
or
47+
48+
```
49+
npm install --save-dev react-native-flipper
50+
```
51+
52+
- Wrap `DebugContextProvider` to the root of the component tree to the App component and pass the `useFlipper` function.
53+
54+
```tsx
55+
import { DebugContextProvider } from 'stream-chat-react-native';
56+
import { useFlipper } from 'stream-chat-react-native-devtools';
57+
...
58+
59+
<DebugContextProvider useFlipper={useFlipper}>
60+
{/* All other elements of the App component comes here */}
61+
</DebugContextProvider>
62+
```
63+
64+
Kudos 🎉, everything else is handled by our SDK, the package [stream-chat-react-native-devtools](https://www.npmjs.com/package/stream-chat-react-native-devtools), and the [Flipper Plugin](https://www.npmjs.com/package/flipper-plugin-stream-chat-react-native).
Lines changed: 89 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,89 @@
1-
@rem
2-
@rem Copyright 2015 the original author or authors.
3-
@rem
4-
@rem Licensed under the Apache License, Version 2.0 (the "License");
5-
@rem you may not use this file except in compliance with the License.
6-
@rem You may obtain a copy of the License at
7-
@rem
8-
@rem https://www.apache.org/licenses/LICENSE-2.0
9-
@rem
10-
@rem Unless required by applicable law or agreed to in writing, software
11-
@rem distributed under the License is distributed on an "AS IS" BASIS,
12-
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
@rem See the License for the specific language governing permissions and
14-
@rem limitations under the License.
15-
@rem
16-
17-
@if "%DEBUG%" == "" @echo off
18-
@rem ##########################################################################
19-
@rem
20-
@rem Gradle startup script for Windows
21-
@rem
22-
@rem ##########################################################################
23-
24-
@rem Set local scope for the variables with windows NT shell
25-
if "%OS%"=="Windows_NT" setlocal
26-
27-
set DIRNAME=%~dp0
28-
if "%DIRNAME%" == "" set DIRNAME=.
29-
set APP_BASE_NAME=%~n0
30-
set APP_HOME=%DIRNAME%
31-
32-
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33-
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34-
35-
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36-
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37-
38-
@rem Find java.exe
39-
if defined JAVA_HOME goto findJavaFromJavaHome
40-
41-
set JAVA_EXE=java.exe
42-
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto execute
44-
45-
echo.
46-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47-
echo.
48-
echo Please set the JAVA_HOME variable in your environment to match the
49-
echo location of your Java installation.
50-
51-
goto fail
52-
53-
:findJavaFromJavaHome
54-
set JAVA_HOME=%JAVA_HOME:"=%
55-
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56-
57-
if exist "%JAVA_EXE%" goto execute
58-
59-
echo.
60-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61-
echo.
62-
echo Please set the JAVA_HOME variable in your environment to match the
63-
echo location of your Java installation.
64-
65-
goto fail
66-
67-
:execute
68-
@rem Setup the command line
69-
70-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71-
72-
73-
@rem Execute Gradle
74-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75-
76-
:end
77-
@rem End local scope for the variables with windows NT shell
78-
if "%ERRORLEVEL%"=="0" goto mainEnd
79-
80-
:fail
81-
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82-
rem the _cmd.exe /c_ return code!
83-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84-
exit /b 1
85-
86-
:mainEnd
87-
if "%OS%"=="Windows_NT" endlocal
88-
89-
:omega
1+
@rem
2+
@rem Copyright 2015 the original author or authors.
3+
@rem
4+
@rem Licensed under the Apache License, Version 2.0 (the "License");
5+
@rem you may not use this file except in compliance with the License.
6+
@rem You may obtain a copy of the License at
7+
@rem
8+
@rem https://www.apache.org/licenses/LICENSE-2.0
9+
@rem
10+
@rem Unless required by applicable law or agreed to in writing, software
11+
@rem distributed under the License is distributed on an "AS IS" BASIS,
12+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
@rem See the License for the specific language governing permissions and
14+
@rem limitations under the License.
15+
@rem
16+
17+
@if "%DEBUG%" == "" @echo off
18+
@rem ##########################################################################
19+
@rem
20+
@rem Gradle startup script for Windows
21+
@rem
22+
@rem ##########################################################################
23+
24+
@rem Set local scope for the variables with windows NT shell
25+
if "%OS%"=="Windows_NT" setlocal
26+
27+
set DIRNAME=%~dp0
28+
if "%DIRNAME%" == "" set DIRNAME=.
29+
set APP_BASE_NAME=%~n0
30+
set APP_HOME=%DIRNAME%
31+
32+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34+
35+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37+
38+
@rem Find java.exe
39+
if defined JAVA_HOME goto findJavaFromJavaHome
40+
41+
set JAVA_EXE=java.exe
42+
%JAVA_EXE% -version >NUL 2>&1
43+
if "%ERRORLEVEL%" == "0" goto execute
44+
45+
echo.
46+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47+
echo.
48+
echo Please set the JAVA_HOME variable in your environment to match the
49+
echo location of your Java installation.
50+
51+
goto fail
52+
53+
:findJavaFromJavaHome
54+
set JAVA_HOME=%JAVA_HOME:"=%
55+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56+
57+
if exist "%JAVA_EXE%" goto execute
58+
59+
echo.
60+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61+
echo.
62+
echo Please set the JAVA_HOME variable in your environment to match the
63+
echo location of your Java installation.
64+
65+
goto fail
66+
67+
:execute
68+
@rem Setup the command line
69+
70+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71+
72+
73+
@rem Execute Gradle
74+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75+
76+
:end
77+
@rem End local scope for the variables with windows NT shell
78+
if "%ERRORLEVEL%"=="0" goto mainEnd
79+
80+
:fail
81+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82+
rem the _cmd.exe /c_ return code!
83+
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84+
exit /b 1
85+
86+
:mainEnd
87+
if "%OS%"=="Windows_NT" endlocal
88+
89+
:omega

examples/ExpoMessaging/ios/ExpoMessaging.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1212
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
1313
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
14-
553C822E87534737AF678266 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F7C6D1C2A914DC18AF2000E /* noop-file.swift */; };
1514
96905EF65AED1B983A6B3ABC /* libPods-ExpoMessaging.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-ExpoMessaging.a */; };
1615
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; };
16+
B733A727FF754E61AC379CD3 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7E59256F303450AB1FA1E77 /* noop-file.swift */; };
1717
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
1818
/* End PBXBuildFile section */
1919

@@ -25,13 +25,13 @@
2525
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ExpoMessaging/Images.xcassets; sourceTree = "<group>"; };
2626
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ExpoMessaging/Info.plist; sourceTree = "<group>"; };
2727
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ExpoMessaging/main.m; sourceTree = "<group>"; };
28-
1F7C6D1C2A914DC18AF2000E /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "ExpoMessaging/noop-file.swift"; sourceTree = "<group>"; };
2928
58EEBF8E8E6FB1BC6CAF49B5 /* libPods-ExpoMessaging.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ExpoMessaging.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3029
6C2E3173556A471DD304B334 /* Pods-ExpoMessaging.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ExpoMessaging.debug.xcconfig"; path = "Target Support Files/Pods-ExpoMessaging/Pods-ExpoMessaging.debug.xcconfig"; sourceTree = "<group>"; };
3130
7A4D352CD337FB3A3BF06240 /* Pods-ExpoMessaging.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ExpoMessaging.release.xcconfig"; path = "Target Support Files/Pods-ExpoMessaging/Pods-ExpoMessaging.release.xcconfig"; sourceTree = "<group>"; };
3231
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = ExpoMessaging/SplashScreen.storyboard; sourceTree = "<group>"; };
3332
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
3433
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
34+
F7E59256F303450AB1FA1E77 /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "ExpoMessaging/noop-file.swift"; sourceTree = "<group>"; };
3535
FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-ExpoMessaging/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
3636
/* End PBXFileReference section */
3737

@@ -58,7 +58,7 @@
5858
13B07FB61A68108700A75B9A /* Info.plist */,
5959
13B07FB71A68108700A75B9A /* main.m */,
6060
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
61-
1F7C6D1C2A914DC18AF2000E /* noop-file.swift */,
61+
F7E59256F303450AB1FA1E77 /* noop-file.swift */,
6262
);
6363
name = ExpoMessaging;
6464
sourceTree = "<group>";
@@ -217,7 +217,7 @@
217217
);
218218
runOnlyForDeploymentPostprocessing = 0;
219219
shellPath = /bin/sh;
220-
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\n`$NODE_BINARY --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n";
220+
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n";
221221
};
222222
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
223223
isa = PBXShellScriptBuildPhase;
@@ -290,7 +290,7 @@
290290
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
291291
13B07FC11A68108700A75B9A /* main.m in Sources */,
292292
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */,
293-
553C822E87534737AF678266 /* noop-file.swift in Sources */,
293+
B733A727FF754E61AC379CD3 /* noop-file.swift in Sources */,
294294
);
295295
runOnlyForDeploymentPostprocessing = 0;
296296
};

examples/ExpoMessaging/ios/Podfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PODS:
99
- ReactCommon
1010
- EXBlur (11.2.0):
1111
- ExpoModulesCore
12-
- EXConstants (13.2.3):
12+
- EXConstants (13.2.4):
1313
- ExpoModulesCore
1414
- EXDocumentPicker (10.3.0):
1515
- ExpoModulesCore
@@ -23,7 +23,7 @@ PODS:
2323
- EXMediaLibrary (14.2.0):
2424
- ExpoModulesCore
2525
- React-Core
26-
- Expo (46.0.3):
26+
- Expo (46.0.9):
2727
- ExpoModulesCore
2828
- ExpoHaptics (11.3.0):
2929
- ExpoModulesCore
@@ -34,12 +34,12 @@ PODS:
3434
- ExpoModulesCore
3535
- ExpoKeepAwake (10.2.0):
3636
- ExpoModulesCore
37-
- ExpoModulesCore (0.11.3):
37+
- ExpoModulesCore (0.11.4):
3838
- React-Core
3939
- ReactCommon/turbomodule/core
4040
- EXSharing (10.3.0):
4141
- ExpoModulesCore
42-
- EXSplashScreen (0.16.1):
42+
- EXSplashScreen (0.16.2):
4343
- ExpoModulesCore
4444
- React-Core
4545
- FBLazyVector (0.69.4)
@@ -587,20 +587,20 @@ SPEC CHECKSUMS:
587587
EXApplication: e418d737a036e788510f2c4ad6c10a7d54d18586
588588
EXAV: 596506c9bee54ad52f2f3b625cdaeb9d9f2dd6b7
589589
EXBlur: a3556f992ca1cdf117f0e19d6e4775f3406e77c3
590-
EXConstants: 75c40827af38bd6bfcf69f880a5b45037eeff9c9
590+
EXConstants: 7c44785d41d8e959d527d23d29444277a4d1ee73
591591
EXDocumentPicker: 027b15cd90ed2d6c6063dcc90369d23c7fa0f2a3
592592
EXFileSystem: 927e0a8885aa9c49e50fc38eaba2c2389f2f1019
593593
EXFont: a5d80bd9b3452b2d5abbce2487da89b0150e6487
594594
EXImageLoader: b88e053d760f85a82405b1db2de4abf11978fc9f
595595
EXMediaLibrary: e8c8a365701629b7b21dd29769b86e8320610f18
596-
Expo: 1b491127df68d0ac717cdde699abfc6f3c5c533c
596+
Expo: 73412414e62f5cbc6e713def821de70b92cd3ad6
597597
ExpoHaptics: efe9e68e9dfe0d15c183c0c70a25f3874124ab9e
598598
ExpoImageManipulator: f4e286afa83c1c618de8701b0812ee0b647895fc
599599
ExpoImagePicker: ca4207f2952a78e6dac2d7852d7e170dd2eaf1d0
600600
ExpoKeepAwake: 0e8f18142e71bbf2c7f6aa66ebed249ba1420320
601-
ExpoModulesCore: 8303cc952788be09fc6eab62815d257016ae6dec
601+
ExpoModulesCore: e281bb7b78ea47e227dd5af94d04b24d8b2e1255
602602
EXSharing: 8530ef08cb899328a7c61de7f4836af6208b567b
603-
EXSplashScreen: 31ab6df6d23e97e074d1330224741979943f1d82
603+
EXSplashScreen: 799bece80089219b2c989c1082d70f3b00995cda
604604
FBLazyVector: c71b8c429a8af2aff1013934a7152e9d9d0c937d
605605
FBReactNativeSpec: cb0df4f0084281b394f76bb9b4d1d9540f35963f
606606
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9

examples/ExpoMessaging/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@react-native-masked-view/masked-view": "0.2.7",
1212
"@react-navigation/native": "5.8.10",
1313
"@react-navigation/stack": "5.12.8",
14-
"expo": "~46.0.3",
14+
"expo": "~46.0.9",
1515
"expo-av": "~12.0.4",
1616
"expo-blur": "~11.2.0",
1717
"expo-document-picker": "~10.3.0",
@@ -21,7 +21,7 @@
2121
"expo-image-picker": "~13.3.1",
2222
"expo-media-library": "~14.2.0",
2323
"expo-sharing": "~10.3.0",
24-
"expo-splash-screen": "~0.16.1",
24+
"expo-splash-screen": "~0.16.2",
2525
"expo-status-bar": "~1.4.0",
2626
"react": "18.0.0",
2727
"react-dom": "18.0.0",

0 commit comments

Comments
 (0)