- way to write react components that are compatible across web and native
- exports 6 prewritten components which will output the correct web/native components
npm install --save react-primitives
| export default function(babel) { | |
| const { types: t } = babel; | |
| return { | |
| name: "test-only-export", | |
| visitor: { | |
| ExportNamedDeclaration(path) { | |
| const lc = path.node.leadingComments; | |
| const cNode = lc && lc[0]; | |
| const cValue = cNode && cNode.value; |