Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 69fe187

Browse files
author
Igor Krasavin
authored
Update docs for using video component (#1900)
1 parent 6ae9392 commit 69fe187

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,18 @@ We work hard to respond to new RN releases, but they do occasionally break us. W
8080

8181
### Supported Components
8282

83-
When using the React Native assets system (i.e. using the `require("./foo.png")` syntax), the following list represents the set of core components (and props) that support having their referenced images updated via CodePush:
83+
When using the React Native assets system (i.e. using the `require("./foo.png")` syntax), the following list represents the set of core components (and props) that support having their referenced images and videos updated via CodePush:
8484

8585
| Component | Prop(s) |
8686
|-------------------------------------------------|------------------------------------------|
87-
| `Image` | `source` |
87+
| `Image` | `source` |
8888
| `MapView.Marker` <br />*(Requires [react-native-maps](https://github.com/lelandrichardson/react-native-maps) `>=O.3.2`)* | `image` |
8989
| `ProgressViewIOS` | `progressImage`, `trackImage` |
9090
| `TabBarIOS.Item` | `icon`, `selectedIcon` |
9191
| `ToolbarAndroid` <br />*(React Native 0.21.0+)* | `actions[].icon`, `logo`, `overflowIcon` |
92+
| `Video` | `source` |
9293

93-
The following list represents the set of components (and props) that don't currently support their assets being updated via CodePush, due to their dependency on static images (i.e. using the `{ uri: "foo" }` syntax):
94+
The following list represents the set of components (and props) that don't currently support their assets being updated via CodePush, due to their dependency on static images and videos (i.e. using the `{ uri: "foo" }` syntax):
9495

9596
| Component | Prop(s) |
9697
|-------------|----------------------------------------------------------------------|
@@ -99,7 +100,11 @@ The following list represents the set of components (and props) that don't curre
99100

100101
As new core components are released, which support referencing assets, we'll update this list to ensure users know what exactly they can expect to update using CodePush.
101102

103+
*Note: CodePush only works with Video components when using `require` in the source prop. For example:*
102104

105+
```javascript
106+
<Video source={require("./foo.mp4")} />
107+
```
103108

104109
## Getting Started
105110

0 commit comments

Comments
 (0)