mirror of
https://github.com/morten-olsen/react-native-debug-console.git
synced 2026-02-08 00:36:26 +01:00
moved
This commit is contained in:
29
packages/lib/src/components/base/Cell.js
Normal file
29
packages/lib/src/components/base/Cell.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components/native';
|
||||
import {
|
||||
Body,
|
||||
Emphasis,
|
||||
} from './text';
|
||||
|
||||
const Wrapper = styled.View`
|
||||
flex-direction: row;
|
||||
padding: 10px;
|
||||
`;
|
||||
|
||||
const Left = styled.View`
|
||||
width: 100px;
|
||||
`;
|
||||
|
||||
const Row = ({
|
||||
left,
|
||||
right,
|
||||
}) => (
|
||||
<Wrapper>
|
||||
<Left>
|
||||
<Emphasis>{left}:</Emphasis>
|
||||
</Left>
|
||||
<Body selectable={true}>{right}</Body>
|
||||
</Wrapper>
|
||||
)
|
||||
|
||||
export default Row;
|
||||
Reference in New Issue
Block a user