({ children })
| 27 | </View> |
| 28 | ) |
| 29 | const Wrapper = ({ children }) => <View type="wrapper">{children}</View> |
| 30 | |
| 31 | const json = convertToJSON( |
| 32 | <Wrapper> |
| 33 | <Header key="header" title="Title" /> |
| 34 | <View key="contents" type="main"> |
| 35 | <Text>Contents</Text> |
| 36 | </View> |
| 37 | </Wrapper>, |
| 38 | { |
| 39 | space: 2, |
| 40 | }, |
| 41 | ) |
| 42 | |
| 43 | const components = { |
| 44 | Text: ({ children }) => <span className="text">{children}</span>, |
nothing calls this directly
no test coverage detected