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

feat(boilerplate): upgrade to Expo SDK 51 #2683

Merged
merged 6 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ Nothing makes it into Ignite unless it's been proven on projects that Infinite R

| Library | Category | Version | Description |
| ----------------- | -------------------- | ------- | ---------------------------------------------- |
| React Native | Mobile Framework | v0.73 | The best cross-platform mobile framework |
| React Native | Mobile Framework | v0.74 | The best cross-platform mobile framework |
| React | UI Framework | v18 | The most popular UI framework in the world |
| TypeScript | Language | v5 | Static typechecking |
| React Navigation | Navigation | v6 | Performant and consistent navigation framework |
| MobX-State-Tree | State Management | v5 | Observable state tree |
| MobX-React-Lite | React Integration | v3 | Re-render React performantly |
| Expo | SDK | v50 | Allows (optional) Expo modules |
| Expo Font | Custom Fonts | v11 | Import custom fonts |
| Expo Localization | Internationalization | v14 | i18n support (including RTL!) |
| Expo | SDK | v51 | Allows (optional) Expo modules |
| Expo Font | Custom Fonts | v12 | Import custom fonts |
| Expo Localization | Internationalization | v15 | i18n support (including RTL!) |
| Expo Status Bar | Status Bar Library | v1 | Status bar support |
| RN Reanimated | Animations | v3 | Beautiful and performant animations |
| AsyncStorage | Persistence | v1 | State persistence |
Expand Down
1 change: 0 additions & 1 deletion boilerplate/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = ({ config }: ConfigContext): Partial<ExpoConfig> => {
plugins: [
...existingPlugins,
require("./plugins/withSplashScreen").withSplashScreen,
require("./plugins/withFlipperDisabled").withFlipperDisabled,
],
}
}
3 changes: 1 addition & 2 deletions boilerplate/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
"expo-build-properties",
{
"ios": {
"newArchEnabled": false,
"flipper": false
"newArchEnabled": false
},
"android": {
"newArchEnabled": false
Expand Down
2 changes: 0 additions & 2 deletions boilerplate/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
const plugins = [
/** react-native-reanimated web support @see https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/#web */
"@babel/plugin-proposal-export-namespace-from",
/** NOTE: This must be last in the plugins @see https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/#babel-plugin */
"react-native-reanimated/plugin",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Frank, thanks for your great work on Ignite, as always!
Is the reanimated babel plugin not necessary anymore since Expo 51?
I stilll see it mentioned at the reanimated docs. https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/#step-2-add-reanimateds-babel-plugin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's no longer necessary since Expo 50. It's already included in babel-expo-preset

https://docs.expo.dev/develop/user-interface/animation/

]

/** @type {import('@babel/core').TransformOptions} */
Expand Down
36 changes: 18 additions & 18 deletions boilerplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,35 @@
},
"dependencies": {
"@expo-google-fonts/space-grotesk": "^0.2.2",
"@expo/metro-runtime": "~3.1.3",
"@expo/metro-runtime": "~3.2.1",
"@react-native-async-storage/async-storage": "^1.21.0",
"@react-navigation/bottom-tabs": "^6.3.2",
"@react-navigation/native": "^6.0.2",
"@react-navigation/native-stack": "^6.0.2",
"@shopify/flash-list": "^1.6.3",
"apisauce": "3.0.1",
"date-fns": "^2.30.0",
"expo": "^50.0.0",
"expo-application": "~5.8.3",
"expo-build-properties": "~0.11.0",
"expo-dev-client": "~3.3.6",
"expo-font": "~11.10.2",
"expo-linking": "~6.2.2",
"expo-localization": "~14.8.3",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"expo": "^51.0.0",
"expo-application": "~5.9.1",
"expo-build-properties": "~0.12.1",
"expo-dev-client": "~4.0.13",
"expo-font": "~12.0.4",
"expo-linking": "~6.3.1",
"expo-localization": "~15.0.3",
"expo-splash-screen": "~0.27.4",
"expo-status-bar": "~1.12.1",
"i18n-js": "3.9.2",
"mobx": "6.10.2",
"mobx-react-lite": "4.0.5",
"mobx-state-tree": "5.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.73.4",
"react-native-drawer-layout": "4.0.0-alpha.1",
"react-native-gesture-handler": "~2.14.0",
"react-native-reanimated": "~3.6.0",
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "~3.29.0",
"react-native": "0.74.1",
"react-native-drawer-layout": "4.0.0-alpha.9",
"react-native-gesture-handler": "~2.16.1",
"react-native-reanimated": "~3.10.1",
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "3.31.1",
"react-native-web": "~0.19.6"
},
"devDependencies": {
Expand Down Expand Up @@ -89,7 +89,7 @@
"eslint-plugin-react-native": "4.0.0",
"eslint-plugin-reactotron": "^0.1.2",
"jest": "^29.2.1",
"jest-expo": "~50.0.1",
"jest-expo": "~51.0.1",
"patch-package": "6.4.7",
"postinstall-prepare": "1.0.1",
"prettier": "2.8.8",
Expand All @@ -100,7 +100,7 @@
"reactotron-react-native": "^5.0.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"typescript": "5.3.2"
"typescript": "~5.3.3"
},
"engines": {
"node": ">=18"
Expand Down
58 changes: 0 additions & 58 deletions boilerplate/plugins/withFlipperDisabled.ts

This file was deleted.