5 ms·
I tried writing a native module a while back (2+ years ago) to work with a RN app and failed miserably. Has the process/documentation improved since then? Are
by ChicagoBoy11 7y ago
I tried writing a native module a while back (2+ years ago) to work with a RN app and failed miserably. Has the process/documentation improved since then? Are there known go-to resources for native module development with clear examples? Wish expo.io (which I have used and is otherwise great) was more robust when it comes to support custom native modules, too.
- asadlionpk 7y agoHonestly, it hasn’t changed much. But Swift made it easier to make a native module (as compared to Obj-C which was defacto method a few years back)
- alfonsodev 7y agoDid you try the iOS Calendar tutorial[1] ? Besides this, I find useful looking into other third party modules, in concrete some module that is simliar of what you are building, if you are having UI or not, if you want to use Cocoa pods or not ... Also a bit of tanget, but I'll take the oportunity to say that I wish third party react-native modules had some sort of standard documentation like flutter website, specially versioned documentation. [1] https://facebook.github.io/react-native/docs/native-modules-ios https://facebook.github.io/react-native/docs/native-modules-...
- rhodysurf 7y agoI have learned it in the last few months. Its been really intuitive as a Native dev swithcing to work with RN more. A really simple example I made is this native module for showing the iOS 13 Context Menu when RN views are long pressed, if you are looking for superrrr simple examples https://github.com/mpiannucci/react-native-uimenu https://github.com/mpiannucci/react-native-uimenu
- ccheever 7y agoHi - I work on Expo. One of the big focuses for us this year is to make that experience much better. We've already taken some steps. (We now just give you a regular React Native project if you need one), but we plan to keep working on this stuff until you can get all the power you need to build something like Screenshot Hero with the ease of use of just making a website.
- ChicagoBoy11 7y agothat's awesome to hear. For what it's worth, I found all of your guys' work simply incredible, and have used it several times both for personal and professional projects with overwhelmingly fantastic results and a far better experience than anything I was ever able to accomplish natively. The "complaint" about problems really stems from the fact that the bulk of the experience is so fantastic that things like this which are still a bit rough around the edges end up really standing out.