File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed
examples/example-src-files Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -16,26 +16,6 @@ import Animated, {
1616import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter' ;
1717import { ghcolors , tomorrow } from 'react-syntax-highlighter/dist/esm/styles/prism' ;
1818
19- const styles = StyleSheet . create ( {
20- container : {
21- marginVertical : 10 ,
22- borderRadius : 5 ,
23- overflow : 'hidden' ,
24- } ,
25- header : {
26- padding : 10 ,
27- } ,
28- headerText : {
29- fontWeight : 'bold' ,
30- } ,
31- codeContainer : {
32- position : 'absolute' ,
33- top : 0 ,
34- left : 0 ,
35- right : 0 ,
36- } ,
37- } ) ;
38-
3919interface CodeSnippetProps {
4020 code : string ;
4121}
@@ -82,3 +62,23 @@ export default function CodeSnippet({ code }: CodeSnippetProps): JSX.Element {
8262 </ View >
8363 ) ;
8464}
65+
66+ const styles = StyleSheet . create ( {
67+ container : {
68+ marginVertical : 10 ,
69+ borderRadius : 5 ,
70+ overflow : 'hidden' ,
71+ } ,
72+ header : {
73+ padding : 10 ,
74+ } ,
75+ headerText : {
76+ fontWeight : 'bold' ,
77+ } ,
78+ codeContainer : {
79+ position : 'absolute' ,
80+ top : 0 ,
81+ left : 0 ,
82+ right : 0 ,
83+ } ,
84+ } ) ;
You can’t perform that action at this time.
0 commit comments