-
-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathNotesExample.stories.tsx
More file actions
96 lines (64 loc) · 1.7 KB
/
NotesExample.stories.tsx
File metadata and controls
96 lines (64 loc) · 1.7 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import type { StoryObj, Meta } from '@storybook/react-native';
import { View, StyleSheet, Text } from 'react-native';
const NotesExampleMeta: Meta<any> = {
tags: ['notes'],
parameters: {
notes: `
# H1
## H2
### H3
#### H4
##### H5
###### H6
This is a paragraph that can span multiple lines. It should be line-wrapped
but not contain any paragraph breaks.
Unless a paragraph break is explicitly used.
Inline content can be **strong**, _emphasized_, ~~struck out~~, \`code\`, or a [hyperlink](http://example.com).
---
- Unordered lists are not numbered
- And can be nested
+ As deeply as desired
- And then resume afterwards
---
1. Ordered lists are numbered
2. And can be nested too
1. Also as deeply as desired
3. And then resume afterwards
---
\`\`\`tsx
Code fences are blocks of monospace text
where leading whitespace is preserved,
and **inline** markup is not supported.
\`\`\`
---
Code blocks are blocks of monospace text
where leading whitespace is preserved,
and **inline** markup is not supported.
---
> Block quotes are blocks of normal text
> where **inline** markup is possible and
>
>> can be nested too.
>
> - Block content is even possible!
`,
},
};
export default NotesExampleMeta;
type NotesExampleStory = StoryObj<any>;
function NotesContent() {
return (
<View
style={{
...StyleSheet.absoluteFillObject,
alignItems: 'center',
justifyContent: 'center',
padding: 16,
}}
>
<Text>This story exercises the notes addon, see the addons panel.</Text>
</View>
);
}
export const NotesExample: NotesExampleStory = () => <NotesContent />;
NotesExample.parameters = { noSafeArea: false };