| 154 | |
| 155 | it('segmented-control: <RNCSegmentedControlNativeComponent> → requireNativeComponent("RNCSegmentedControl") → the native view', async () => { |
| 156 | const write = (rel: string, content: string) => { |
| 157 | fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true }); |
| 158 | fs.writeFileSync(path.join(dir, rel), content); |
| 159 | }; |
| 160 | write('package.json', '{"dependencies":{"react-native":"^0.73"}}'); |
| 161 | write('js/RNCSegmentedControlNativeComponent.js', `import { requireNativeComponent } from 'react-native'; |
| 162 | module.exports = requireNativeComponent('RNCSegmentedControl'); |