Skip to content

Commit

Permalink
fix: fix code block in README.md (TheWidlarzGroup#1455)
Browse files Browse the repository at this point in the history
(rebased from commit 80391d4)
  • Loading branch information
kagawagao authored and Beau Ner committed Oct 10, 2019
1 parent 622d2e5 commit e270b46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1137,12 +1137,13 @@ zip -r -n .mp4 *.mp4 player.video.example.com
<Video source={{uri: "background", mainVer: 1, patchVer: 0}} // Looks for .mp4 file (background.mp4) in the given expansion version.
resizeMode="cover" // Fill the whole screen at aspect ratio.
style={styles.backgroundVideo} />
```

### Load files with the RN Asset System

The asset system [introduced in RN `0.14`](http://www.reactnative.com/react-native-v0-14-0-released/) allows loading image resources shared across iOS and Android without touching native code. As of RN `0.31` [the same is true](https://github.com/facebook/react-native/commit/91ff6868a554c4930fd5fda6ba8044dbd56c8374) of mp4 video assets for Android. As of [RN `0.33`](https://github.com/facebook/react-native/releases/tag/v0.33.0) iOS is also supported. Requires `react-native-video@0.9.0`.

```
```javascript
<Video
source={require('../assets/video/turntable.mp4')}
/>
Expand Down

0 comments on commit e270b46

Please sign in to comment.