mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 17:58:20 +00:00
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:
commit
0d889b9919
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user