Skip to content

Commit 49414f2

Browse files
author
Emre Güdür
committed
forced commit
1 parent 08d9745 commit 49414f2

2 files changed

Lines changed: 4 additions & 33 deletions

File tree

README.md

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Reactjs chat elements
66

7+
## NOTE: this package not support react-native anymore.
8+
79
## **[Full Documentation](https://detaysoft.github.io/docs-react-chat-elements/)**, **[Changelog](https://github.com/Detaysoft/react-chat-elements/blob/master/CHANGELOG.md)**
810

911
## Install
@@ -12,30 +14,6 @@
1214
npm install react-chat-elements --save
1315
```
1416

15-
### For React Native (Experimental)
16-
17-
Step 1: Install react-chat-elements
18-
19-
```
20-
npm install react-chat-elements --save
21-
```
22-
23-
If you have already installed react-native-vector-icons as a dependency for your project you can skip this step. Otherwise run the following command:
24-
25-
Step 2: Install react-native-vector-icons
26-
27-
```
28-
npm i --save react-native-vector-icons
29-
```
30-
31-
**Link:**
32-
33-
```
34-
react-native link react-native-vector-icons
35-
```
36-
37-
_If you have any issues installing react-native-vector-icons, check out their installation guide [here](https://github.com/oblador/react-native-vector-icons#installation)._
38-
3917
### Imports
4018

4119
```javascript
@@ -45,13 +23,6 @@ import 'react-chat-elements/dist/main.css'
4523
import { MessageBox } from 'react-chat-elements'
4624
```
4725

48-
#### React Native
49-
50-
```javascript
51-
// MessageBox component
52-
import { MessageBox } from 'react-chat-elements/native'
53-
```
54-
5526
## Components
5627

5728
1. [ChatItem](#chatitem-component)

src/VideoMessage/VideoMessage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const VideoMessage: React.FC<IVideoMessageProps> = props => {
2222
setText: (arg0: string | number) => void
2323
}
2424
) => {
25-
circle.path.setAttribute('trail', (data.state !== undefined && data.state.color) || '')
26-
circle.path.setAttribute('trailwidth-width', (data.state !== undefined && data.state.width) || '')
25+
circle.path.setAttribute('trail', (data.state !== undefined && data?.state?.color) || '')
26+
circle.path.setAttribute('trailwidth-width', (data.state !== undefined && data?.state?.width) || '')
2727

2828
var value = Math.round(circle?.value() * 100)
2929
if (value === 0) circle?.setText('')

0 commit comments

Comments
 (0)