mirror of
https://github.com/morten-olsen/react-native-debug-console.git
synced 2026-02-08 00:36:26 +01:00
29 lines
428 B
JavaScript
29 lines
428 B
JavaScript
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; |