mirror of https://github.com/jitsi/jitsi-meet
Fragment now works on both React and React Native, so use it.pull/3016/head
parent
efc9cc9f50
commit
9ac5aafe10
@ -1,30 +0,0 @@ |
||||
// @flow
|
||||
|
||||
import { Component } from 'react'; |
||||
|
||||
/** |
||||
* {@code Fragment} component's property types. |
||||
* |
||||
* @static |
||||
*/ |
||||
type Props = { |
||||
children: React$Node |
||||
}; |
||||
|
||||
/** |
||||
* react-redux's {@code Provider} component only accepts a single child, so use |
||||
* a simple wrapper component in order to pass more than 1 child components. |
||||
* |
||||
* TODO Remove once React Native supports Fragment (0.52 probably). |
||||
*/ |
||||
export default class Fragment extends Component<Props> { |
||||
/** |
||||
* Implements React's {@link Component#render()}. |
||||
* |
||||
* @inheritdoc |
||||
* @returns {React$Node} |
||||
*/ |
||||
render() { |
||||
return this.props.children; |
||||
} |
||||
} |
Loading…
Reference in new issue