| 48 | } |
| 49 | |
| 50 | function generateExample(name) { |
| 51 | return ( |
| 52 | `/* |
| 53 | * Copyright (c) 2016-present, Parse, LLC |
| 54 | * All rights reserved. |
| 55 | * |
| 56 | * This source code is licensed under the license found in the LICENSE file in |
| 57 | * the root directory of this source tree. |
| 58 | */ |
| 59 | import React${padding(name.length - 5)} from 'react'; |
| 60 | import ${name}${padding(5 - name.length)} f` + 'rom' + ` 'components/${name}/${name}.react'; |
| 61 | |
| 62 | export const component = ${name}; |
| 63 | |
| 64 | export const demos = [ |
| 65 | { |
| 66 | name: 'Demo name', |
| 67 | render: () => ( |
| 68 | <div>Demo content</div> |
| 69 | ) |
| 70 | } |
| 71 | ]; |
| 72 | `); |
| 73 | } |
| 74 | |
| 75 | function generateTest(name) { |
| 76 | return ( |