Merge pull request #1554 from delta98/bugfix/FaCC-backwards-compat

UPDATED renderChildren to return this.props.children instead of null
This commit is contained in:
Andrei Xavier de Oliveira Calazans 2018-05-09 07:31:32 -03:00 committed by GitHub
commit 0d889b9919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,7 +338,7 @@ export default class Camera extends React.Component<PropsType, StateType> {
if (this.hasFaCC()) { if (this.hasFaCC()) {
return this.props.children({ camera: this, status: this.getStatus() }); return this.props.children({ camera: this, status: this.getStatus() });
} }
return null; return this.props.children;
}; };
render() { render() {