Skip to content

Commit a7bfb1e

Browse files
Removing momentjs's locale imports
1 parent 5dec269 commit a7bfb1e

File tree

9 files changed

+2094
-450
lines changed

9 files changed

+2094
-450
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ dist/built: $(LIB_SOURCES) node_modules/installed_dependencies
3333
touch $@ q
3434

3535
clean:
36-
rm -rf $(addsuffix /node_modules,$(EXAMPLES_APPS))
37-
rm -rf $(addsuffix /node_modules,$(WRAPPER_PACKAGES))
38-
rm -rf $(addsuffix /dist,$(WRAPPER_PACKAGES))
39-
rm -rf dist
40-
rm -rf node_modules
36+
rm -rf $(addsuffix /node_modules,$(EXAMPLES_APPS)) || true
37+
rm -rf $(addsuffix /node_modules,$(WRAPPER_PACKAGES)) || true
38+
rm -rf $(addsuffix /dist,$(WRAPPER_PACKAGES)) || true
39+
rm -rf dist || true
40+
rm -rf node_modules || true

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,7 @@ const i18n = new Streami18n({ language: 'nl' });
316316
</Chat>;
317317
```
318318

319-
If you would like to override certain keys in in-built translation.
320-
UI will be automatically updated in this case.
319+
If you would like to override certain keys in in-built translation:
321320

322321
```js static
323322
const i18n = new Streami18n({
@@ -330,4 +329,6 @@ const i18n = new Streami18n({
330329
});
331330
```
332331

332+
UI will be automatically updated in this case.
333+
333334
Please read this docs on i18n for more details and further customizations - https://getstream.github.io/stream-chat-react-native/#streami18n

expo-package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8820,10 +8820,10 @@ stream-buffers@~2.2.0:
88208820
resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4"
88218821
integrity sha1-kdX1Ew0c75bc+n9yaUUYh0HQnuQ=
88228822

8823-
8824-
version "0.6.5"
8825-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-0.6.5.tgz#43d60802a871394a008bfa0ec2ba53b56b94b4f9"
8826-
integrity sha512-bVqttAGvX8u/9sdpbRCbyzNbr7PIFjh/WmDcppXSUpQ8hLyJpKpkTaouiT0PeRSSlnL/eVXJVDvzM/QM2uI1LA==
8823+
8824+
version "0.6.6"
8825+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-0.6.6.tgz#0a19821c4382944dad174984f60764409007fb0c"
8826+
integrity sha512-g4/7Q0bfm/6paU/ND5z19H3dtyuGRzZotY04MGah6GdXltas/I9Kw9Or9p7pfZ88ige+1389VAEoEzX+dLsjAA==
88278827
dependencies:
88288828
"@babel/runtime" "^7.1.2"
88298829
"@stream-io/react-native-simple-markdown" "^1.1.1"

native-package/yarn.lock

Lines changed: 12 additions & 205 deletions
Large diffs are not rendered by default.

src/components/docs/MessageSimple.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const readBy = [
2525
editing={false}
2626
style={{ 'avatar.fallback': 'background-color: red;' }}
2727
{...data.channelContext}
28+
{...data.translationContext}
2829
/>;
2930
```
3031

@@ -38,6 +39,7 @@ const data = require('./data');
3839
groupStyles={['single']}
3940
editing={false}
4041
{...data.channelContext}
42+
{...data.translationContext}
4143
/>;
4244
```
4345

@@ -51,6 +53,7 @@ const data = require('./data');
5153
groupStyles={['single']}
5254
editing={false}
5355
{...data.channelContext}
56+
{...data.translationContext}
5457
/>;
5558
```
5659

@@ -60,7 +63,7 @@ You can customize the styles of message text by providing custom styles in theme
6063

6164
Available options for customization are: https://github.com/CharlesMangwa/react-native-simple-markdown/tree/next#styles-1
6265

63-
```json
66+
```js static
6467
const theme = {
6568
message: {
6669
content: {

0 commit comments

Comments
 (0)