1.0.5 • Published 4 years ago

react-native-template-joaoalrc-template v1.0.5

Weekly downloads
21
License
-
Repository
-
Last release
4 years ago

To set up this template, run: react-native init packnameasuwant --template joaoalrc-template

This template has a initial confg of pages, components, redux, eslint and api calls.

Finish steps:

To finalize installation of react-native-screens for Android, add the following two lines to dependencies section in android/app/build.gradle:

  • implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
  • implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02'

To finalize installation of react-native-gesture-handler for Android, make the following modifications to MainActivity.java:

package com.reactnavigation.example;

import com.facebook.react.ReactActivity;

  • import com.facebook.react.ReactActivityDelegate;
  • import com.facebook.react.ReactRootView;
  • import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;

public class MainActivity extends ReactActivity {

@Override protected String getMainComponentName() { return "Example"; }

  • @Override
  • protected ReactActivityDelegate createReactActivityDelegate() {
  • return new ReactActivityDelegate(this, getMainComponentName()) {
  •  @Override
  •  protected ReactRootView createRootView() {
  •    return new RNGestureHandlerEnabledRootView(MainActivity.this);
  •  }
  • };
  • } }

React native vector icons config: https://github.com/oblador/react-native-vector-icons

Enjoy the template!