Skip to content

Commit

Permalink
chore: upgrade expo sdk to 52
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Nov 22, 2024
1 parent 05a6569 commit 4e0bf11
Show file tree
Hide file tree
Showing 4 changed files with 2,134 additions and 1,442 deletions.
1 change: 1 addition & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"runtimeVersion": {
"policy": "appVersion"
},
"newArchEnabled": true,
"extra": {
"eas": {
"projectId": "85bcb0f0-d130-11e6-b8eb-59d1587e6774"
Expand Down
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,39 @@
},
"packageManager": "yarn@4.1.1",
"dependencies": {
"@expo/metro-runtime": "~3.2.1",
"@expo/metro-runtime": "~4.0.0",
"@expo/vector-icons": "^14.0.2",
"@react-navigation/elements": "^2.0.0-rc.22",
"@react-navigation/material-top-tabs": "^7.0.0-rc.23",
"@react-navigation/native": "^7.0.0-rc.18",
"@react-navigation/stack": "^7.0.0-rc.24",
"expo": "^51.0.26",
"expo-blur": "~13.0.2",
"expo-font": "~12.0.9",
"expo-linking": "~6.3.1",
"expo-splash-screen": "~0.27.5",
"expo-status-bar": "~1.12.1",
"expo-updates": "~0.25.22",
"jest-expo": "~51.0.3",
"@react-navigation/elements": "^2.1.1",
"@react-navigation/material-top-tabs": "^7.0.7",
"@react-navigation/native": "^7.0.4",
"@react-navigation/stack": "^7.0.6",
"expo": "^52.0.11",
"expo-blur": "~14.0.1",
"expo-font": "~13.0.1",
"expo-linking": "~7.0.3",
"expo-splash-screen": "~0.29.13",
"expo-status-bar": "~2.0.0",
"expo-updates": "~0.26.9",
"jest-expo": "~52.0.2",
"lodash": "4.17.21",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.5",
"react-native-gesture-handler": "~2.16.1",
"react-native-pager-view": "6.3.0",
"react-native-safe-area-context": "4.10.5",
"react-native-screens": "3.31.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native": "0.76.3",
"react-native-gesture-handler": "~2.20.2",
"react-native-pager-view": "6.5.1",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "~4.1.0",
"react-native-tab-view": "3.5.2",
"react-native-web": "~0.19.6"
"react-native-web": "~0.19.13"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@jest/globals": "^29.7.0",
"@types/lodash": "4.17.0",
"@types/react": "~18.2.79",
"@types/react-dom": "~18.2.25",
"@types/react": "~18.3.12",
"@types/react-dom": "~18.3.1",
"@types/react-native": "~0.73.0",
"eslint": "^8.57.0",
"eslint-config-satya164": "^3.3.0",
Expand Down
22 changes: 9 additions & 13 deletions src/components/Paragraph.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
import * as React from 'react';
import { StyleSheet, Text, type StyleProp, type ViewStyle } from 'react-native';
import { StyleSheet, Text, type TextProps } from 'react-native';

type Props = {
style?: StyleProp<ViewStyle>;
children: React.ReactNode;
};

export default function Paragraph(props: Props) {
export default function Paragraph({
selectable = true,
style,
children,
...rest
}: TextProps) {
return (
<Text {...props} style={[styles.paragraph, props.style]}>
{props.children}
<Text {...rest} selectable={selectable} style={[styles.paragraph, style]}>
{children}
</Text>
);
}

Paragraph.defaultProps = {
selectable: true,
};

const styles = StyleSheet.create({
paragraph: {
fontFamily: 'Montserrat',
Expand Down
Loading

0 comments on commit 4e0bf11

Please sign in to comment.