opentok-react-native
Advanced tools
Comparing version 0.3.2 to 0.3.3
{ | ||
"name": "opentok-react-native", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "React Native components for OpenTok iOS and Android SDKs", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
import React, { Component, Children, cloneElement } from 'react'; | ||
import { View } from 'react-native'; | ||
import { View, ViewPropTypes } from 'react-native'; | ||
import PropTypes from 'prop-types'; | ||
@@ -74,2 +74,5 @@ import { setNativeEvents, OT } from './OT'; | ||
render() { | ||
const { style } = this.props; | ||
if (this.props.children) { | ||
@@ -85,3 +88,3 @@ const childrenWithProps = Children.map( | ||
); | ||
return <View>{ childrenWithProps }</View>; | ||
return <View style={style}>{ childrenWithProps }</View>; | ||
} | ||
@@ -100,2 +103,3 @@ return <View />; | ||
]), | ||
style: ViewPropTypes.style, | ||
eventHandlers: PropTypes.object, // eslint-disable-line react/forbid-prop-types | ||
@@ -108,2 +112,5 @@ signal: PropTypes.object, // eslint-disable-line react/forbid-prop-types | ||
signal: {}, | ||
style: { | ||
flex: 1 | ||
}, | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89944
657