Skip to content

Commit 1eb12c4

Browse files
authored
fix: card play icon theme and dark mode appearance (#2593)
* docs: remove chat trial like from docs * fix: card play icon theme and dark mode appearance
1 parent 723342b commit 1eb12c4

File tree

7 files changed

+63
-31
lines changed

7 files changed

+63
-31
lines changed

docusaurus/docs/reactnative/basics/hello_stream_chat.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ Before starting make sure you have installed `stream-chat-react-native` as direc
2727
Stream Chat for React Native uses [`stream-chat`](https://github.com/GetStream/stream-chat-js), Stream's JavaScript client, to interact with Stream's chat services.
2828
`stream-chat` is a dependency of Stream Chat for React Native so it is can be used once `stream-chat-react-native` is installed.
2929

30-
To start you must get an instance of Stream Chat, for this you will need an API key.
31-
To create one you can sign up for a [free 30-day trial](https://getstream.io/chat/trial/) of Stream Chat, no CC is required.
30+
To start, you can sign up for a [Free subscription](https://getstream.io/chat/pricing/) and then get your API key.
3231

3332
```ts
3433
import { StreamChat } from 'stream-chat';

docusaurus/docs/reactnative/ui-components/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Stream Chat for React Native uses [`stream-chat`](https://github.com/GetStream/s
3030
You don't have to explicitly install `stream-chat` in your project.
3131
:::
3232

33-
To start you must get an instance of Stream Chat, for this you will need an API key. To create one you can sign up for a [free 30-day trial](https://getstream.io/chat/trial/) of Stream Chat.
33+
To start, you can sign up for a [Free subscription](https://getstream.io/chat/pricing/) and then get your API key.
3434

3535
```ts
3636
import { StreamChat } from 'stream-chat';

examples/SampleApp/yarn.lock

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,13 +1120,20 @@
11201120
resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310"
11211121
integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==
11221122

1123-
"@babel/runtime@^7.0.0", "@babel/runtime@^7.12.0", "@babel/runtime@^7.16.3", "@babel/runtime@^7.20.0", "@babel/runtime@^7.8.4":
1123+
"@babel/runtime@^7.0.0", "@babel/runtime@^7.16.3", "@babel/runtime@^7.20.0", "@babel/runtime@^7.8.4":
11241124
version "7.23.9"
11251125
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.9.tgz#47791a15e4603bb5f905bc0753801cf21d6345f7"
11261126
integrity sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==
11271127
dependencies:
11281128
regenerator-runtime "^0.14.0"
11291129

1130+
"@babel/runtime@^7.17.2":
1131+
version "7.24.8"
1132+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.8.tgz#5d958c3827b13cc6d05e038c07fb2e5e3420d82e"
1133+
integrity sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA==
1134+
dependencies:
1135+
regenerator-runtime "^0.14.0"
1136+
11301137
"@babel/template@^7.0.0", "@babel/template@^7.22.15", "@babel/template@^7.23.9", "@babel/template@^7.3.3":
11311138
version "7.23.9"
11321139
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.23.9.tgz#f881d0487cba2828d3259dcb9ef5005a9731011a"
@@ -4198,12 +4205,12 @@ human-signals@^2.1.0:
41984205
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
41994206
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
42004207

4201-
i18next@20.2.4:
4202-
version "20.2.4"
4203-
resolved "https://registry.yarnpkg.com/i18next/-/i18next-20.2.4.tgz#972220f19dfef0075a70890d3e8b1f7cf64c5bd6"
4204-
integrity sha512-goE1LCA/IZOGG26PkkqoOl2KWR7YP606SvokVQZ29J6QwE02KycrzNetoMUJeqYrTxs4rmiiZgZp+q8qofQL6Q==
4208+
i18next@^21.6.14:
4209+
version "21.10.0"
4210+
resolved "https://registry.yarnpkg.com/i18next/-/i18next-21.10.0.tgz#85429af55fdca4858345d0e16b584ec29520197d"
4211+
integrity sha512-YeuIBmFsGjUfO3qBmMOc0rQaun4mIpGKET5WDwvu8lU7gvwpcariZLNtL0Fzj+zazcHUrlXHiptcFhBMFaxzfg==
42054212
dependencies:
4206-
"@babel/runtime" "^7.12.0"
4213+
"@babel/runtime" "^7.17.2"
42074214

42084215
ieee754@^1.1.13:
42094216
version "1.2.1"
@@ -4278,6 +4285,11 @@ internal-slot@^1.0.5, internal-slot@^1.0.7:
42784285
hasown "^2.0.0"
42794286
side-channel "^1.0.4"
42804287

4288+
intl-pluralrules@^2.0.1:
4289+
version "2.0.1"
4290+
resolved "https://registry.yarnpkg.com/intl-pluralrules/-/intl-pluralrules-2.0.1.tgz#de16c3df1e09437635829725e88ea70c9ad79569"
4291+
integrity sha512-astxTLzIdXPeN0K9Rumi6LfMpm3rvNO0iJE+h/k8Kr/is+wPbRe4ikyDjlLr6VTh/mEfNv8RjN+gu3KwDiuhqg==
4292+
42814293
invariant@^2.2.4:
42824294
version "2.2.4"
42834295
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
@@ -6825,15 +6837,16 @@ statuses@~1.5.0:
68256837
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
68266838
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
68276839

6828-
stream-chat-react-native-core@5.31.1:
6829-
version "5.31.1"
6830-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.31.1.tgz#4367276c8316d325e6b062e4efb95d464d4e2eef"
6831-
integrity sha512-EKHMQ0bWRoyubTxk1IKEbkIzcIY5hxHDpyGU7ObGXLLnhoVBEDranZBQ7dNDdbuM88uKh9mGK5WH4NQSTioKxQ==
6840+
stream-chat-react-native-core@5.33.0:
6841+
version "5.33.0"
6842+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.33.0.tgz#14f04de90cbc8db011bab8db3fa84abe2dc2eaec"
6843+
integrity sha512-V9OJA9MrHzaCw5q16ZRbEktA1HamITbXPOkVZOjpDbb0OBcmedmOnD9C2NFIprc770lhllS/1MKBDr0GdQ9NXQ==
68326844
dependencies:
68336845
"@gorhom/bottom-sheet" "4.4.8"
68346846
dayjs "1.10.5"
68356847
emoji-regex "^10.3.0"
6836-
i18next "20.2.4"
6848+
i18next "^21.6.14"
6849+
intl-pluralrules "^2.0.1"
68376850
linkifyjs "^4.1.1"
68386851
lodash-es "4.17.21"
68396852
mime-types "^2.1.34"

examples/TypeScriptMessaging/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,4 +1517,4 @@ SPEC CHECKSUMS:
15171517

15181518
PODFILE CHECKSUM: 90406e1e85c82b37484f5d746afa45c0637bb4b3
15191519

1520-
COCOAPODS: 1.15.2
1520+
COCOAPODS: 1.14.3

examples/TypeScriptMessaging/yarn.lock

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,13 +1404,20 @@
14041404
resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310"
14051405
integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==
14061406

1407-
"@babel/runtime@^7.0.0", "@babel/runtime@^7.12.0", "@babel/runtime@^7.16.3", "@babel/runtime@^7.20.0", "@babel/runtime@^7.8.4":
1407+
"@babel/runtime@^7.0.0", "@babel/runtime@^7.16.3", "@babel/runtime@^7.20.0", "@babel/runtime@^7.8.4":
14081408
version "7.22.3"
14091409
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.3.tgz#0a7fce51d43adbf0f7b517a71f4c3aaca92ebcbb"
14101410
integrity sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==
14111411
dependencies:
14121412
regenerator-runtime "^0.13.11"
14131413

1414+
"@babel/runtime@^7.17.2":
1415+
version "7.24.8"
1416+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.8.tgz#5d958c3827b13cc6d05e038c07fb2e5e3420d82e"
1417+
integrity sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA==
1418+
dependencies:
1419+
regenerator-runtime "^0.14.0"
1420+
14141421
"@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.21.9", "@babel/template@^7.3.3":
14151422
version "7.21.9"
14161423
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.21.9.tgz#bf8dad2859130ae46088a99c1f265394877446fb"
@@ -4465,12 +4472,12 @@ human-signals@^2.1.0:
44654472
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
44664473
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
44674474

4468-
i18next@20.2.4:
4469-
version "20.2.4"
4470-
resolved "https://registry.yarnpkg.com/i18next/-/i18next-20.2.4.tgz#972220f19dfef0075a70890d3e8b1f7cf64c5bd6"
4471-
integrity sha512-goE1LCA/IZOGG26PkkqoOl2KWR7YP606SvokVQZ29J6QwE02KycrzNetoMUJeqYrTxs4rmiiZgZp+q8qofQL6Q==
4475+
i18next@^21.6.14:
4476+
version "21.10.0"
4477+
resolved "https://registry.yarnpkg.com/i18next/-/i18next-21.10.0.tgz#85429af55fdca4858345d0e16b584ec29520197d"
4478+
integrity sha512-YeuIBmFsGjUfO3qBmMOc0rQaun4mIpGKET5WDwvu8lU7gvwpcariZLNtL0Fzj+zazcHUrlXHiptcFhBMFaxzfg==
44724479
dependencies:
4473-
"@babel/runtime" "^7.12.0"
4480+
"@babel/runtime" "^7.17.2"
44744481

44754482
ieee754@^1.1.13:
44764483
version "1.2.1"
@@ -4545,6 +4552,11 @@ internal-slot@^1.0.3, internal-slot@^1.0.5:
45454552
has "^1.0.3"
45464553
side-channel "^1.0.4"
45474554

4555+
intl-pluralrules@^2.0.1:
4556+
version "2.0.1"
4557+
resolved "https://registry.yarnpkg.com/intl-pluralrules/-/intl-pluralrules-2.0.1.tgz#de16c3df1e09437635829725e88ea70c9ad79569"
4558+
integrity sha512-astxTLzIdXPeN0K9Rumi6LfMpm3rvNO0iJE+h/k8Kr/is+wPbRe4ikyDjlLr6VTh/mEfNv8RjN+gu3KwDiuhqg==
4559+
45484560
invariant@^2.2.4:
45494561
version "2.2.4"
45504562
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
@@ -6518,6 +6530,11 @@ regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.2:
65186530
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
65196531
integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==
65206532

6533+
regenerator-runtime@^0.14.0:
6534+
version "0.14.1"
6535+
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f"
6536+
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==
6537+
65216538
regenerator-transform@^0.15.1:
65226539
version "0.15.1"
65236540
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.1.tgz#f6c4e99fc1b4591f780db2586328e4d9a9d8dc56"
@@ -6882,15 +6899,16 @@ statuses@~1.5.0:
68826899
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
68836900
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
68846901

6885-
stream-chat-react-native-core@5.31.1:
6886-
version "5.31.1"
6887-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.31.1.tgz#4367276c8316d325e6b062e4efb95d464d4e2eef"
6888-
integrity sha512-EKHMQ0bWRoyubTxk1IKEbkIzcIY5hxHDpyGU7ObGXLLnhoVBEDranZBQ7dNDdbuM88uKh9mGK5WH4NQSTioKxQ==
6902+
stream-chat-react-native-core@5.33.0:
6903+
version "5.33.0"
6904+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.33.0.tgz#14f04de90cbc8db011bab8db3fa84abe2dc2eaec"
6905+
integrity sha512-V9OJA9MrHzaCw5q16ZRbEktA1HamITbXPOkVZOjpDbb0OBcmedmOnD9C2NFIprc770lhllS/1MKBDr0GdQ9NXQ==
68896906
dependencies:
68906907
"@gorhom/bottom-sheet" "4.4.8"
68916908
dayjs "1.10.5"
68926909
emoji-regex "^10.3.0"
6893-
i18next "20.2.4"
6910+
i18next "^21.6.14"
6911+
intl-pluralrules "^2.0.1"
68946912
linkifyjs "^4.1.1"
68956913
lodash-es "4.17.21"
68966914
mime-types "^2.1.34"

package/src/components/Attachment/Card.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const CardWithContext = <
137137

138138
const {
139139
theme: {
140-
colors: { accent_blue, black, blue_alice, transparent, white },
140+
colors: { accent_blue, black, blue_alice, static_black, static_white, transparent },
141141
messageSimple: {
142142
card: {
143143
authorName,
@@ -210,8 +210,10 @@ const CardWithContext = <
210210
style={[styles.cardCover, cover, stylesProp.cardCover]}
211211
>
212212
{isVideoCard ? (
213-
<View style={[styles.playButtonStyle, roundedView, { backgroundColor: white }]}>
214-
<Play height={height} pathFill={black} width={width} />
213+
<View
214+
style={[styles.playButtonStyle, roundedView, { backgroundColor: static_white }]}
215+
>
216+
<Play height={height} pathFill={static_black} width={width} />
215217
</View>
216218
) : null}
217219
</ImageBackground>

package/src/contexts/themeContext/utils/theme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,8 @@ export const defaultTheme: Theme = {
10081008
videoContainer: {},
10091009
},
10101010
playIcon: {
1011-
height: 24,
1012-
width: 24,
1011+
height: 32,
1012+
width: 32,
10131013
},
10141014
},
10151015
container: {},

0 commit comments

Comments
 (0)