Build a React Native Todo Application

Build a React Native Todo Application course by @browniefed #react

  • In this course we’ll explore getting started with a basic React Native application on both iOS and Android.
  • We’ll learn about using React Native components, how to build custom components, how to layout an application using Flexbox, and how to style components.
  • We’ll also focus on how to use state to control components, how to persist information across application reloads with AsyncStorage, and how to inline edit in a ListView.
  • The ultimate goal is to gain an understanding of how to get started building simple React Native applications.

In this course we’ll explore getting started with a basic React Native application on both iOS and Android. We’ll learn about using React Native components, how to build custom components, how to layout an application using Flexbox, and how to style components.

We’ll also focus on how to use state to control components, how to persist information across application reloads with AsyncStorage, and how to inline edit in a ListView.

The ultimate goal is to gain an understanding of how to get started building simple React Native applications.

Continue reading “Build a React Native Todo Application”

A Year of React Native: SSL Pinning – Made by Many

Notes on #ReactNative: on SSL pinning by @samueljmurray

  • When your app initiates this communication, your backend sends its certificate (which contains the public key).
  • Your app then checks that the certificate has been signed by a Certificate Authority (CA) that is trusted by the user’s device.
  • SSL pinning narrows these avenues of attack by letting you define the exact certificate or public key that your app will accept when communicating with your backend.
  • If you use a service like AWS Certificate Manager or Let’s Encrypt your certificate and public key could change at any time.
  • TrustKit also comes with a handy tool for extracting public keys from certificates and converting them to Base64 encoded SHA256 hashes.

We’ve been using React Native for over a year now and we’re loving how quickly we can create feature-rich and performant apps for iOS and Android. So far w…
Continue reading “A Year of React Native: SSL Pinning – Made by Many”

Build a React Native Todo Application

Build a React Native Todo Application course by @browniefed #react

  • In this course we’ll explore getting started with a basic React Native application on both iOS and Android.
  • We’ll learn about using React Native components, how to build custom components, how to layout an application using Flexbox, and how to style components.
  • We’ll also focus on how to use state to control components, how to persist information across application reloads with AsyncStorage, and how to inline edit in a ListView.
  • The ultimate goal is to gain an understanding of how to get started building simple React Native applications.

In this course we’ll explore getting started with a basic React Native application on both iOS and Android. We’ll learn about using React Native components, how to build custom components, how to layout an application using Flexbox, and how to style components.

We’ll also focus on how to use state to control components, how to persist information across application reloads with AsyncStorage, and how to inline edit in a ListView.

The ultimate goal is to gain an understanding of how to get started building simple React Native applications.

Continue reading “Build a React Native Todo Application”

Styling React components with css modules and themes.

Styling #ReactJS components with #CSS modules and themes:  #JavaScript

  • Our requirementsWe have 3 different apps: web app, android and iOS.
  • Your components in the different apps share the same structure and logic, only theme settings are changing.The ProblemHow to use the same identifiers but create different styles for each app?The current scenario force us to update our components to make them aware of themes by using some plugin.
  • But sometimes, you want to create different builds for different apps; think about creating different layouts for android or iOS, or creating different themes and do some AB testing with them.This is where this loader comes handy, the idea is to create the themes in our css or sass file, and then the loader will take care of including the correct css rulesInstall itnpm install cssthemes-loader –save-devSetupWrite your css modules with selectors like you want, I recommend using it with :selector and then adding the styles there for each theme.
  • elem2 { font-size: 12px; }}Your React component will remain the same, no need to change anything there, which I think it’s the cool part of this.You’ve to include the loader before (in webpack’s logic) sass-loader or css-loader.
  • s?css$/, use: [ { loader: ‘style-loader’ }, { loader: ‘css-loader’ }, { loader: ‘sass-loader’ }, { loader: ‘cssthemes-loader’, options: { target: ‘:android’, ignore: [‘:ios’] } }, ], exclude: /node_modules/, } ],}}This example is for running with hot reloading so we’re using style-loader, but you can also use extract-text-webpack-plugin or any other, this loader just clean up the initial styling rules.Now after running the webpack command we’ll get this css for this module.elem { color: blue; font-size: 10px; text-align: center; .

We have 3 different apps: web app, android and iOS. Each app has its own custom styles.
We’re using React, Webpack and css-modules.
Your components in the different apps share the same structure and…
Continue reading “Styling React components with css modules and themes.”

A Glimpse Into The Future With React Native For Web – Smashing Magazine

A Glimpse Into The Future With React Native For Web – @smashingmag

  • We have already seen how1 React Native can help you make iOS and Android apps with a shared code base, without sacrifices in quality.
  • React Native for Web is intended to let you write a single app that runs in a browser using standard web technologies, or on iOS and Android as a real native mobile app.
  • React Native for Web’s solution is to provide browser-compatible implementations of React Native’s components — meaning, for example, that the of React Native has a DOM-based version that knows how to render to a .
  • At this point, your file should look something like this:

    While we have what seems to be everything required for our React Native app to run in a web browser, we must take a brief detour to consider the realities of web development.

  • This will be a good simple stress test of React Native for Web, because we need to use a few different components for it: , , and .

React Native can help you make iOS and Android apps with a shared code base, without sacrifices in quality. Clayton Anderson takes a glimpse into the future with React Native for Web…
Continue reading “A Glimpse Into The Future With React Native For Web – Smashing Magazine”

Build a React Native Todo Application

Build a React Native Todo Application course by @browniefed #react

  • In this course we’ll explore getting started with a basic React Native application on both iOS and Android.
  • We’ll learn about using React Native components, how to build custom components, how to layout an application using Flexbox, and how to style components.
  • We’ll also focus on how to use state to control components, how to persist information across application reloads with AsyncStorage, and how to inline edit in a ListView.
  • The ultimate goal is to gain an understanding of how to get started building simple React Native applications.

In this course we’ll explore getting started with a basic React Native application on both iOS and Android. We’ll learn about using React Native components, how to build custom components, how to layout an application using Flexbox, and how to style components.

We’ll also focus on how to use state to control components, how to persist information across application reloads with AsyncStorage, and how to inline edit in a ListView.

The ultimate goal is to gain an understanding of how to get started building simple React Native applications.

Continue reading “Build a React Native Todo Application”