Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import React from 'react';
import {View, Text, StyleSheet} from 'react-native';
import {ColorPallet, TextTheme} from 'src/theme/theme';
type LegalParticipantProps = {
jsonld: any;
};
const JsonLdRawViewer: React.FC<LegalParticipantProps> = ({
jsonld,
}) => {
return (
<View>
<Text style={styles.header}>Raw JSON-LD:</Text>
<View style={styles.json}>
<Text style={styles.jsonValue}>
{JSON.stringify(jsonld, null, 2)}
</Text>
</View>
</View>
);
};
export default JsonLdRawViewer;
const styles = StyleSheet.create({
header: {
...TextTheme.normal,
color: ColorPallet.baseColors.black,
fontWeight: 'bold',
marginBottom: 8,
},
json: {
paddingVertical: 16,
},
jsonValue: {
...TextTheme.normal,
color: ColorPallet.baseColors.black,
},
});