mirror of
https://github.com/morten-olsen/react-native-debug-console.git
synced 2026-02-08 00:36:26 +01:00
27 lines
428 B
JavaScript
27 lines
428 B
JavaScript
import React from 'react';
|
|
import styled from 'styled-components/native';
|
|
import {
|
|
Fixed,
|
|
} from '../../base/text';
|
|
|
|
const Scroll = styled.ScrollView`
|
|
flex: 1;
|
|
border-top-width: 1px;
|
|
border-color: #ccc;
|
|
`;
|
|
|
|
const Wrapper = styled.View`
|
|
padding: 8px 16px;
|
|
`;
|
|
|
|
const Value = ({
|
|
value,
|
|
}) => (
|
|
<Scroll>
|
|
<Wrapper>
|
|
<Fixed selectable={true}>{value}</Fixed>
|
|
</Wrapper>
|
|
</Scroll>
|
|
)
|
|
|
|
export default Value; |