peggyrayzis / react-native-create-bridge

A CLI tool that bridges React Native modules & UI components with ease πŸŽ‰
MIT License
1.02k stars 63 forks source link

IOS DIrectory is not created when running create-bridge #40

Open marchon opened 6 years ago

marchon commented 6 years ago

Dev setup:

I am using create-bridge in a:

What you did:

Georges-MacBook-Pro:react-native-create-bridge marchon$ create-bridge ? What is your bridge module called? TESTBRIDGE ? What type of bridge would you like to create? Native Module ? What OS & languages would you like to support? (Press to select, to toggle all, to inverse selection)Android/Java, iOS/Objective-C ? What directory should we deliver your JS files to? . [readAndWriteFiles] { Error: ENOENT: no such file or directory, open '/Users/marchon/NJ/bridging/react-native-create-bridge/ios/TESTBRIDGE.h' at Error (native) errno: -2, code: 'ENOENT', syscall: 'open', path: '/Users/marchon/NJ/bridging/react-native-create-bridge/ios/TESTBRIDGE.h' } βœ” Your bridge module was successfully created! πŸŽ‰

What happened:

No ios directory was created, so no files were written.

'/Users/marchon/NJ/bridging/react-native-create-bridge/ios/TESTBRIDGE.h' at Error (native) errno: -2, code: 'ENOENT', syscall: 'open', path: '/Users/marchon/NJ/bridging/react-native-create-bridge/ios/TESTBRIDGE.h' } βœ” Your bridge module was successfully created! πŸŽ‰

screen shot 2017-12-12 at 3 53 06 pm

I do believe that the code makes the directory for the javascipt path but not the ios path. If I make the ios path in advance, the files appear there.