yarn add react-native-cli
npx react-native init
cd
With react-native version > 0.60
yarn add jetifier
npx jetify
yarn
react-native start
adb reverse tcp:3334 tcp:3334
react-native run-android
adb reverse tcp:9090 tcp:9090
react-native run-android
yarn add eslint -D
yarn eslint --init
Yes/JavaScript/de-select browser and node/Use a known template/Select airbnb/JavaScript/React
yarn
yarn add reactotron-react-native
yarn add react-navigation react-native-gesture-handler
react-native link react-native-gesture-handler
https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html
Update your MainActivity.java file
package com.swmansion.gesturehandler.react.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);
-
}
- };
- } }
yarn add styled-components
yarn add react-native-vector-icons
react-native link react-native-vector-icons
yarn add axios
yarn add @react-native-community/async-storage react-native link @react-native-community/async-storage
yarn add prop-types
yarn add react-native-webview