react-native-remote-push icon indicating copy to clipboard operation
react-native-remote-push copied to clipboard

Provide an xcode project with a library target

Open isair opened this issue 10 years ago • 8 comments

Most react-native npm packages do this; eases and standardizes the installation process. Some examples: react-native-video, react-native-linear-gradient, react-native-activity-view.

isair avatar Jul 28 '15 17:07 isair

+1 for including the .xcodeproj file in the release

ghost avatar Nov 02 '15 16:11 ghost

I'll have a look at this when I get a chance. In the meantime if anyone wants to submit a pull request to fix this please feel free :)

darylrowland avatar Nov 23 '15 12:11 darylrowland

@brentvatne know of any articles for generating the Xcodeproj file using something like what CocoaPods uses, or even a manual method with steps boiled down for RN library authors? Thanks in advance.

ghost avatar Nov 23 '15 12:11 ghost

I do not @jhabdas! I have always just created a project from scratch in Xcode and then added the react-native dependency manually

brentvatne avatar Nov 23 '15 20:11 brentvatne

So that's the trick! :P

ghost avatar Nov 23 '15 20:11 ghost

I've published this change to NPM now. The only issue is that the project file doesn't seem to include RemotePushDelegate.m and RemotePushDelegate.h - so these need to be added manually to the project. I'll update the instructions when I get round to it.

Thanks everyone!

darylrowland avatar Dec 15 '15 22:12 darylrowland

You the man @darylrowland! Hope the community bands together to make a generator of some kind as time goes on so a tool can come along and automate module generation and consumption.

ghost avatar Dec 16 '15 00:12 ghost

I think I saw something called rnpm for react native modules the other day. Will take a look when I get a chance. Or if anyone else knows about it, feel free to make a pull request.

On 16 Dec 2015, at 00:52, Josh Habdas [email protected] wrote:

You the man @darylrowland! Hope the community bands together to make a generator of some kind as time goes on so a tool can come along and automate module generation and consumption.

— Reply to this email directly or view it on GitHub.

darylrowland avatar Dec 16 '15 07:12 darylrowland