How to use react-native with yarn? – Kryptonik

Bye #npm! Now you can speed up your #reactnative init with #yarnpkg

  • switch “npm install” by “yarn add”,
  • var proc = spawn(‘yarn’, [‘add’, ‘–verbose’, getInstallPackage(rnPackage)], {stdio: ‘inherit’});
  • Change the followings npm command to yarn in the #run and #runVerbose methods
  • var proc = spawn(‘npm’, [‘install’, ‘–verbose’, ‘–save’, ‘–save-exact’, getInstallPackage(rnPackage)], {stdio: ‘inherit’});
  • exec(‘yarn add ‘ + getInstallPackage(rnPackage), function(e, stdout, stderr) {

CAUTION: Make sure to keep the original one. It is quite sure that the react-native OSS team will include this capability in the core later. But like me, you couldn’t wait.
Continue reading “How to use react-native with yarn? – Kryptonik”

React-Native Components And Code-Skeleton Walkthrough

#ReactNative Components & Code-Skeleton Walkthrough by @ksr007 cc @CsharpCorner

  • Its very obvious how to tell react Application about the root component (like index.html of any Web Application).
  • We also tried to understand how a react-native component is created and registered in the app.
  • Actual React Native framework code is installed locally into your project when you run react-native init because react-native init calls npm install react-native.
  • As you can see in the code, some styles are applied.
  • We declare the components in ES6( ES 2015 )format.

Read the full article, click here.


@CsharpCorner: “#ReactNative Components & Code-Skeleton Walkthrough by @ksr007 cc @CsharpCorner”


In this article, you will learn about React-Native components and Code-Skeleton walkthrough.


React-Native Components And Code-Skeleton Walkthrough