Reactxp and webpack dev server8/13/2023 ![]() ![]() I found out there are 2 main ways to work create a React Native app using CRNA: I snooped around the Ignite boilerplate for RN-specific tools, helpers, and libs, and introduced some of them to the newly created project. So, once again, I decided to go with what I know, scaffolded a simple project using CRNA, and made it look like our web projects. Unfortunately, Ignite’s project structure was very different from what we were used to in our React projects. The second one is equivalent to the create-react-app tool. The first one is the most popular and advanced RN CLI. Two projects caught my attention: an excellent Ignite starter by InfiniteRed and create-react-native-app. Obviously, I wasn’t going to do it myself, so I turned toward starters and CLIs. ![]() I needed to set up a project using a React Native framework – the boilerplate. Good news for a web developer.īefore we can create a React Native app, we need to do some setup work first. The thing is: if you have a JS engine, it’s probably possible to run some JS code. If you wish to learn more about RN internals, you can start with Alexander Kotliarskyi’s talk “React Native: Under the hood”. When it comes to RN, there’s a JS engine running (either JavaScriptCore or V8) and native code, both connected with a so-called bridge (aka message queue). One of our previous articles explains the basics of creating a hybrid mobile app. I have to say, even though I’d been good friends with React for some time, I didn’t know much about RN or how it worked.Ī native app with JS? The code is probably pre-compiled, like Xamarin for iOS (AOT compilation), right? I was so wrong. Meaning, I wanted to use as many of our favorite libraries as I could repeat the practices we know and mimic the familiar folder structure. I defined a goal: to set up the project for development in a way it would be as similar as possible to our web React projects. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |