2021-10-26 18:19:13 +00:00
|
|
|
/**
|
|
|
|
* Project YooLearn
|
|
|
|
* File index
|
|
|
|
* Path app/components/Screen
|
|
|
|
* Created by BRICE ZELE
|
|
|
|
* Date: 26/08/2021
|
|
|
|
*/
|
|
|
|
import React from 'react';
|
2023-11-13 15:32:27 +00:00
|
|
|
import {SafeAreaView, View} from 'react-native';
|
2021-10-26 18:19:13 +00:00
|
|
|
import {NetInfoBar} from './NetInfoBar';
|
|
|
|
import {Color} from "../config/Color";
|
|
|
|
|
|
|
|
export const ScreenComponent = React.forwardRef((props, ref) => (
|
2023-11-13 15:32:27 +00:00
|
|
|
<SafeAreaView style={[ props.style]} {...props}>
|
2021-10-26 18:19:13 +00:00
|
|
|
<NetInfoBar/>
|
2023-11-13 15:32:27 +00:00
|
|
|
{React.Children.map(props.children, child =>
|
2021-10-26 18:19:13 +00:00
|
|
|
React.cloneElement(child, {}),
|
2023-11-13 15:32:27 +00:00
|
|
|
)}
|
|
|
|
{/* {props.children} */}
|
2021-10-26 18:19:13 +00:00
|
|
|
</SafeAreaView>
|
|
|
|
));
|