Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: rea 3 upgrade #11559

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
import java.util.List;
import com.facebook.react.modules.i18nmanager.I18nUtil;

import com.facebook.react.bridge.JSIModulePackage;
import com.swmansion.reanimated.ReanimatedJSIModulePackage;

public class MainApplication extends MultiDexApplication implements ReactApplication {

private final ReactNativeHost mReactNativeHost =
Expand All @@ -49,11 +46,6 @@ protected List<ReactPackage> getPackages() {
protected String getJSMainModuleName() {
return "index";
}

@Override
protected JSIModulePackage getJSIModulePackage() {
return new ReanimatedJSIModulePackage();
}
};

// TODO: Use this to enable new architecture.
Expand Down
2 changes: 2 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const defaultPlugins = [
// source code transformation as we do not use class property assignment.
'transform-class-properties',

'@babel/plugin-proposal-export-namespace-from',

// Keep it last
'react-native-reanimated/plugin',
];
Expand Down
14 changes: 10 additions & 4 deletions config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const path = require('path');
const {IgnorePlugin, DefinePlugin, ProvidePlugin} = require('webpack');
const {
IgnorePlugin, DefinePlugin, ProvidePlugin, EnvironmentPlugin,
} = require('webpack');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
Expand All @@ -18,6 +20,7 @@ const includeModules = [
'react-native-gesture-handler',
'react-native-flipper',
'react-native-google-places-autocomplete',
'@react-navigation/drawer',
].join('|');

/**
Expand All @@ -30,9 +33,10 @@ const includeModules = [
const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({
mode: 'production',
devtool: 'source-map',
entry: {
app: './index.js',
},
entry: [
'babel-polyfill',
'./index.js',
],
output: {
filename: '[name]-[contenthash].bundle.js',
path: path.resolve(__dirname, '../../dist'),
Expand Down Expand Up @@ -66,12 +70,14 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({
{from: 'node_modules/pdfjs-dist/cmaps/', to: 'cmaps/'},
],
}),
new EnvironmentPlugin({JEST_WORKER_ID: null}),
new IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
...(platform === 'web' ? [new CustomVersionFilePlugin()] : []),
new DefinePlugin({
process: {env: {}},
__REACT_WEB_CONFIG__: JSON.stringify(
dotenv.config({path: envFile}).parsed,
),
Expand Down
16 changes: 10 additions & 6 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,12 @@ PODS:
- React-Core
- react-native-render-html (6.3.1):
- React-Core
- react-native-safe-area-context (3.4.1):
- react-native-safe-area-context (4.4.1):
- RCT-Folly
- RCTRequired
- RCTTypeSafety
- React-Core
- ReactCommon/turbomodule/core
- react-native-webview (11.23.0):
- React-Core
- React-perflogger (0.70.4)
Expand Down Expand Up @@ -590,7 +594,7 @@ PODS:
- React-Core
- RNReactNativeHapticFeedback (1.14.0):
- React-Core
- RNReanimated (2.10.0):
- RNReanimated (3.0.0-rc.3):
- DoubleConversion
- FBLazyVector
- FBReactNativeSpec
Expand All @@ -617,7 +621,7 @@ PODS:
- React-RCTText
- ReactCommon/turbomodule/core
- Yoga
- RNScreens (3.15.0):
- RNScreens (3.17.0):
- React-Core
- React-RCTImage
- RNSVG (12.4.4):
Expand Down Expand Up @@ -983,7 +987,7 @@ SPEC CHECKSUMS:
react-native-progress-bar-android: be43138ab7da30d51fc038bafa98e9ed594d0c40
react-native-progress-view: 4d3bbe6a099ba027b1fedb1548c2c87f74249b70
react-native-render-html: 96c979fe7452a0a41559685d2f83b12b93edac8c
react-native-safe-area-context: 9e40fb181dac02619414ba1294d6c2a807056ab9
react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a
react-native-webview: e771bc375f789ebfa02a26939a57dbc6fa897336
React-perflogger: 5e41b01b35d97cc1b0ea177181eb33b5c77623b6
React-RCTActionSheet: 48949f30b24200c82f3dd27847513be34e06a3ae
Expand All @@ -1009,8 +1013,8 @@ SPEC CHECKSUMS:
RNGestureHandler: 920eb17f5b1e15dae6e5ed1904045f8f90e0b11e
RNPermissions: dcdb7b99796bbeda6975a6e79ad519c41b251b1c
RNReactNativeHapticFeedback: 1e3efeca9628ff9876ee7cdd9edec1b336913f8c
RNReanimated: 60e291d42c77752a0f6d6f358387bdf225a87c6e
RNScreens: 4a1af06327774490d97342c00aee0c2bafb497b7
RNReanimated: 26dd29fdca770f9151705eff8e811013a3e9a5ba
RNScreens: 0df01424e9e0ed7827200d6ed1087ddd06c493f9
RNSVG: ecd661f380a07ba690c9c5929c475a44f432d674
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
Expand Down
Loading