application-amicale/screens/Tetris/components/Cell.js

22 lines
496 B
JavaScript
Raw Normal View History

2020-03-15 18:44:32 +01:00
// @flow
import * as React from 'react';
import {View} from 'react-native';
import {withTheme} from 'react-native-paper';
function Cell(props) {
const colors = props.theme.colors;
return (
<View style={{
flex: 1,
backgroundColor: props.color,
borderColor: props.isEmpty ? props.color : "#393939",
borderStyle: 'solid',
borderWidth: 1,
aspectRatio: 1,
}}/>
);
}
export default withTheme(Cell);