- yarn install
- yarn android
- yarn ios
Follow this link to setup key and generate .apk
file
Follow this link to create .api
or .app
bundle
Note: React native can't debug using Remote react native debugger. Following the statement from react-hook-reanimated:
As the library uses JSI for synchronous native methods access, remote debugging is no longer possible. You can use Flipper for debugging your JS code, however connecting debugger to JS context which runs on the UI thread is not currently supported.
- Install Flipper for checking network, log, etc..
- Open Flipper and choose Emulator or device
- Debug!
- Enabling Hermes in RN following this website
- Open Flipper => React Native => Hermes Debugger
- Inside Hermes Debugger => Go to Source code tab to set breakpoint and debug
- Open Flipper => Disable => enable Network
Way to check Redux state and action in Flipper ( All steps are followed in this repo ):
- Install redux-flipper middleware and react-native-flipper in your React Native app:
yarn add redux-flipper react-native-flipper
# for iOS
cd ios && pod install
- Add the middleware into your redux store:
import { createStore, applyMiddleware } from 'redux';
const middlewares = [
/* other middlewares */
];
if (__DEV__) {
const createDebugger = require('redux-flipper').default;
middlewares.push(createDebugger());
}
const store = createStore(RootReducer, applyMiddleware(...middlewares));
- Install flipper-plugin-redux-debugger in Flipper desktop client:
Manage Plugins > Install Plugins > search "redux-debugger" > Install
- Start your app, then you should be able to see Redux Debugger on your Flipper app
1. TextInput issues on Android follow this link:
- Use
defaultValue
instead ofvalue
inTextInput