Introduction – Developing a native mobile app with React-Native and Typescript – Medium

Introduction  #typescript #javascript #react #reactnative

  • We decided on developing a mobile app with react-native just because the idea of developing a native mobile app with javascript felt very exciting.We also thought of using Typescript with React because we feel it not only just brings type-safety to the javascript code but in-fact brings all the advantages of object-oriented programming allowing us to think javascript code in terms of some well-established design patterns and standards that help us design highly scalable code.
  • The goodies it brings — abstract and concrete classes, types, interface, enums are hard to resist.As we started on the development of the app, I thought it would be a good idea to put our learnings here in a series as it not only will help us document our tasks but would also help other react-native learners and developers.In this series, we will document step-by-step each task that we work on during the development of this app, right from the initial project set-up to its final implementation and release to the app store.What app we are going to developThe app we would be developing would be a simple photo albums app, where user can create an album and add photos to its from his/her mobile.Tech-stack to be usedUI using react-native + TypescriptStorage — Azure DocumentDBREST API using node.js, Azure DocumentDB Node APIAuthentication — oAuth (Facebook and Google)Targeted platformsIn its first version, we are planning to target only Android platform simply because couple of us in the team don’t own a Mac Book and apple doesn’t allow to develop iOS apps from any other operating system.Github RepoOur LimitationsWe are all learners of react/react-native, also this being a side project that we all will work on in our spare time, we are anticipating the project to go on a bit slow pace.Functional Testing — we don’t have a QE Automation expert in our team yet, so for most of its part Functional testing would be manual3.
  • Environment — for the UI app, we will use emulators on our local system to test our code.
  • Being a mobile app, it would be released to Android Playstore and thus we don’t need to maintain any servers for the UI app4.
  • So stay tuned, more stories to come soonInterested in joining us in this wonderful journey?we’ll be glad to have you in our team, pls email to us at iw2dev@gmail.com with a little bit about yourself

Couple of weeks back, I and some of my friends, started on a side/hobby project to learn reactJS. We decided on developing a mobile app with react-native just because the idea of developing a native…
Continue reading “Introduction – Developing a native mobile app with React-Native and Typescript – Medium”

Reactive Core architecture for React Native and React applications – KuraLabs Engineering

Reactive Core architecture for React Native and #ReactJS applications:  #JavaScript

  • Reactive Core architecture for React Native and React applicationsWhen it comes to develop an application that needs a mobile app and a web app, there is always a struggle in the matter of what is the right approach to take.
  • Nevertheless, even though these frameworks solve code reuse between mobile platforms the problem to reuse functionality with a web application remains.This article proposes an architecture “Reactive Core Architecture” that allows to have just one code base for the logic and keep the native UI and the web UI separated, maximizing code reuse and maintaining consistency across platforms.Some of the advantages are consistency, code maintainability, testing gets easier and performance is high.
  • React Native is used for the mobile application and React is used for the web application.Redux “is a predictable state container for JavaScript apps”, that means the whole state of the application is stored in an object tree.
  • Code reuse is done via this module.The mobile app: Implemented as a standard React Native application, using containers and components.The web application: Implemented as a standard React application, using containers and components.Each module will live in its own repository, with the core as a git submodule in both applications.Let’s take a look to the architecture diagram:Consists on a basic Redux structure, meaning you have a folder for the actions and a folder for the reducers.root├── actions└── reducersThis is the most important module to make the Reactive Core Architecture possible.
  • Since each reducer handles an specific part of the application state, it makes easier for the core module to scale for larger and more complex applications.The mobile app and the web app.Both the React Native app and the React app, use components and containers concepts.

When it comes to develop an application that needs a mobile app and a web app, there is always a struggle in the matter of what is the right approach to take. You can build a web app and a native…
Continue reading “Reactive Core architecture for React Native and React applications – KuraLabs Engineering”

Putting the “Native” in React Native

Putting the

  • Thankfully, getting the system volume is not difficult in iOS or Android, so it makes a perfect example of a simple native module.
  • This post will walk through making a native module for iOS, for Android, and the JavaScript code we can use in our app to call our new modules.
  • In our React Native module, we have a bit of a special case: we need only define the module in our header file as each method we want to expose is done so via the macro in the implementation file only.
  • Just as we did with the iOS module, we can add a method to our module that will get the system’s volume (see this commit in our example code).
  • We’ll need to use the to get the system volume, so add a couple imports to :

    And add an instance variable set in the constructor:

    Adding the actual method looks similar to the iOS version:

    One final improvement we can do is refactor our use of into its own JavaScript module, (see this commit in our example code):

    Then, we can get the volume using:

    A benefit of this refactoring is that if we want to perform different native code depending on the platform, we can isolate those code branches to their own (testable!)

A guide to writing native modules in a React Native application.
Continue reading “Putting the “Native” in React Native”

React’s Five Fingers of Death. Master these five concepts, then master React.

The 5 things you need to know to understand #ReactJS:

  • If you’ve enjoyed this article, please share it and recommend it (that little green heart just below).
  • The consequence of using the functional component syntax is that you lose access to the component methods we just talked about.
  • Higher-order components are a common pattern for giving a component access to new tools.
  • A HoC is a component that you can wrap around another component to pass it special props, and it’s typically created using a higher-order component factory function .
  • And we’ve also talked about the component methods supported by these classes.

A few years ago, my friend Sean started telling me how this brand new front-end library called React was going to take over the web. At first I dismissed it as just another framework fad. But then I…
Continue reading “React’s Five Fingers of Death. Master these five concepts, then master React.”

The Complete React Native and Redux Course Coupon Save 89 %

The Complete React Native and Redux Course
☞ 

#reactjs

  • The course will get you up and running with React Native quickly, and teach you the core knowledge you need to deeply understand and build React components for mobile devices.
  • If you’re tired of spinning your wheels learning Swift or Android, this is the course for you.
  • Source code is provided for each lecture, so you will always stay up-to-date with the course pacing.
  • A course that explains the concepts and how they’re implemented in the best order for you to learn and deeply understand them.
  • Master the process of breaking down a complex component into many smaller, interchangeable components.

Coupon 100 10 15 75 iOS and Android App Development from scratch – build fully native mobile apps ridiculously fast!
Continue reading “The Complete React Native and Redux Course Coupon Save 89 %”