Skip to content

Commit

Permalink
upgrade to Expo 51
Browse files Browse the repository at this point in the history
  • Loading branch information
Alchemist85K committed May 8, 2024
1 parent 0b0dca5 commit a69b7cf
Show file tree
Hide file tree
Showing 14 changed files with 34,378 additions and 31,415 deletions.
26,118 changes: 14,104 additions & 12,014 deletions rn-calc/package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions rn-calc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
},
"dependencies": {
"eslint-plugin-react-hooks": "^4.6.0",
"expo": "~46.0.7",
"expo-status-bar": "~1.4.0",
"expo": "^51.0.0",
"expo-status-bar": "~1.12.1",
"prop-types": "^15.8.1",
"react": "18.0.0",
"react-native": "0.69.4"
"react": "18.2.0",
"react-native": "0.74.1"
},
"devDependencies": {
"@babel/core": "^7.12.9",
Expand Down
11 changes: 6 additions & 5 deletions rn-calc/src/components/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ const Colors = {
OPERATOR: ['#f59e0b', '#b45309'],
};

const Button = ({ title, onPress, buttonStyle, buttonType }) => {
const Button = ({
title,
onPress,
buttonStyle,
buttonType = ButtonTypes.NUMBER,
}) => {
return (
<Pressable
onPress={onPress}
Expand All @@ -27,10 +32,6 @@ const Button = ({ title, onPress, buttonStyle, buttonType }) => {
);
};

Button.defaultProps = {
buttonType: ButtonTypes.NUMBER,
};

Button.propTypes = {
title: PropTypes.string.isRequired,
onPress: PropTypes.func.isRequired,
Expand Down
13 changes: 10 additions & 3 deletions rn-photo/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"infoPlist": {
Expand All @@ -26,10 +28,15 @@
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#F97316"
},
"permissions": ["READ_EXTERNAL_STORAGE"]
"permissions": [
"READ_EXTERNAL_STORAGE"
]
},
"web": {
"favicon": "./assets/favicon.png"
}
},
"plugins": [
"expo-asset"
]
}
}

0 comments on commit a69b7cf

Please sign in to comment.