mirror of
https://github.com/morten-olsen/react-native-debug-console.git
synced 2026-02-08 00:36:26 +01:00
V2 (#1)
This commit is contained in:
27
packages/lib/src/components/DevTool/Storage/Value.js
Normal file
27
packages/lib/src/components/DevTool/Storage/Value.js
Normal file
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user