Skip to content
Permalink
Browse files

fix mock video

  • Loading branch information...
xcarpentier committed May 28, 2019
1 parent 3e46de8 commit e0efb3a48658610c16cce21e716ad288a519fc3b
Showing with 9 additions and 14 deletions.
  1. +1 −0 README.md
  2. +7 −0 __mocks__/react-native-video.js
  3. +1 −1 package.json
  4. +0 −13 yarn.lock
@@ -293,6 +293,7 @@ interface QuickReplies {
- **`renderMessage`** _(Function)_ - Custom message container
- **`renderMessageText`** _(Function)_ - Custom message text
- **`renderMessageImage`** _(Function)_ - Custom message image
- **`renderMessageVideo`** _(Function)_ - Custom message video
- **`imageProps`** _(Object)_ - Extra props to be passed to the [`<Image>`](https://facebook.github.io/react-native/docs/image.html) component created by the default `renderMessageImage`
- **`videoProps`** _(Object)_ - Extra props to be passed to the [`<Video>`](https://github.com/react-native-community/react-native-video) component created by the default `renderMessageVideo`
- **`lightboxProps`** _(Object)_ - Extra props to be passed to the `MessageImage`'s [Lightbox](https://github.com/oblador/react-native-lightbox)
@@ -0,0 +1,7 @@
// __mocks__/react-native-video.js
import React from 'react'
import { View } from 'react-native'

// Import this named export into your test file:
const Video = () => <View>React native video mock</View>
export default Video
@@ -95,10 +95,10 @@
"react-native-iphone-x-helper": "^1.2.0",
"react-native-lightbox": "^0.7.0",
"react-native-parsed-text": "^0.0.20",
"react-native-video": "^3.2.1",
"uuid": "3.3.0"
},
"peerDependencies": {
"react-native-video": "*",
"prop-types": "*",
"react": "*",
"react-native": "*"
@@ -4842,11 +4842,6 @@ jsprim@^1.2.2:
json-schema "0.2.3"
verror "1.10.0"

keymirror@0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/keymirror/-/keymirror-0.1.1.tgz#918889ea13f8d0a42e7c557250eee713adc95c35"
integrity sha1-kYiJ6hP40KQufFVyUO7nE63JXDU=

kind-of@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-1.1.0.tgz#140a3d2d41a36d2efcfa9377b62c24f8495a5c44"
@@ -6346,14 +6341,6 @@ react-native-vector-icons@6.0.0:
prop-types "^15.6.2"
yargs "^8.0.2"

react-native-video@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/react-native-video/-/react-native-video-3.2.1.tgz#7ba3cbdfc5c747b5b00452811e98193824b16ce3"
integrity sha512-Xansfoo/to80FwhM1HKlf7pCxDZ5RtV+kG3piCVvsNAhPY4GGwiOGUH9y3Y+mFQIDEWcY8I9j16lsFYAbnue3g==
dependencies:
keymirror "0.1.1"
prop-types "^15.5.10"

react-native-view-shot@2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/react-native-view-shot/-/react-native-view-shot-2.5.0.tgz#428a997f470d3148d0067c5b46abd988ef1aa4c0"

0 comments on commit e0efb3a

Please sign in to comment.
You can’t perform that action at this time.