MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / write

Function write

__tests__/fabric-view.test.ts:156–159  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

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';
162module.exports = requireNativeComponent('RNCSegmentedControl');

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected