expo-template-default 53.0.2 → 53.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,11 @@
1
- import { Link, type LinkProps } from 'expo-router';
1
+ import { Href, Link } from 'expo-router';
2
2
  import { openBrowserAsync } from 'expo-web-browser';
3
+ import { type ComponentProps } from 'react';
3
4
  import { Platform } from 'react-native';
4
5
 
5
- export function ExternalLink({ href, ...rest }: LinkProps) {
6
+ type Props = Omit<ComponentProps<typeof Link>, 'href'> & { href: Href & string };
7
+
8
+ export function ExternalLink({ href, ...rest }: Props) {
6
9
  return (
7
10
  <Link
8
11
  target="_blank"
@@ -13,7 +16,7 @@ export function ExternalLink({ href, ...rest }: LinkProps) {
13
16
  // Prevent the default behavior of linking to the default browser on native.
14
17
  event.preventDefault();
15
18
  // Open the link in an in-app browser.
16
- await openBrowserAsync(href.toString());
19
+ await openBrowserAsync(href);
17
20
  }
18
21
  }}
19
22
  />
@@ -3,7 +3,7 @@
3
3
  import MaterialIcons from '@expo/vector-icons/MaterialIcons';
4
4
  import { SymbolWeight, SymbolViewProps } from 'expo-symbols';
5
5
  import { ComponentProps } from 'react';
6
- import { OpaqueColorValue, StyleProp, ViewStyle } from 'react-native';
6
+ import { OpaqueColorValue, type StyleProp, type TextStyle } from 'react-native';
7
7
 
8
8
  type IconMapping = Record<SymbolViewProps['name'], ComponentProps<typeof MaterialIcons>['name']>;
9
9
  type IconSymbolName = keyof typeof MAPPING;
@@ -34,7 +34,7 @@ export function IconSymbol({
34
34
  name: IconSymbolName;
35
35
  size?: number;
36
36
  color: string | OpaqueColorValue;
37
- style?: StyleProp<ViewStyle>;
37
+ style?: StyleProp<TextStyle>;
38
38
  weight?: SymbolWeight;
39
39
  }) {
40
40
  return <MaterialIcons color={color} size={size} name={MAPPING[name]} style={style} />;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "expo-template-default",
3
3
  "license": "0BSD",
4
4
  "main": "expo-router/entry",
5
- "version": "53.0.2",
5
+ "version": "53.0.4",
6
6
  "scripts": {
7
7
  "start": "expo start",
8
8
  "reset-project": "node ./scripts/reset-project.js",
@@ -16,27 +16,27 @@
16
16
  "preset": "jest-expo"
17
17
  },
18
18
  "dependencies": {
19
- "@expo/vector-icons": "^14.0.2",
20
- "@react-navigation/bottom-tabs": "^7.3.0",
21
- "@react-navigation/elements": "^2.3.6",
22
- "@react-navigation/native": "^7.0.17",
23
- "expo": "~53.0.0-preview.0",
19
+ "@expo/vector-icons": "^14.1.0",
20
+ "@react-navigation/bottom-tabs": "^7.3.10",
21
+ "@react-navigation/elements": "^2.3.8",
22
+ "@react-navigation/native": "^7.1.6",
23
+ "expo": "~53.0.0-preview.1",
24
24
  "expo-blur": "~14.1.0",
25
25
  "expo-constants": "~17.1.0",
26
26
  "expo-font": "~13.1.0",
27
27
  "expo-haptics": "~14.1.0",
28
28
  "expo-linking": "~7.1.0",
29
- "expo-router": "~5.0.1-preview.0",
29
+ "expo-router": "~5.0.2-preview.0",
30
30
  "expo-splash-screen": "~0.30.0",
31
31
  "expo-status-bar": "~2.1.0",
32
- "expo-symbols": "~0.3.0",
33
- "expo-system-ui": "~5.0.0",
32
+ "expo-symbols": "~0.4.0",
33
+ "expo-system-ui": "~5.0.1",
34
34
  "expo-web-browser": "~14.1.0",
35
35
  "react": "19.0.0",
36
36
  "react-dom": "19.0.0",
37
- "react-native": "0.79.0-rc.4",
37
+ "react-native": "0.79.0",
38
38
  "react-native-gesture-handler": "~2.24.0",
39
- "react-native-reanimated": "~3.17.1",
39
+ "react-native-reanimated": "~3.17.3",
40
40
  "react-native-safe-area-context": "5.3.0",
41
41
  "react-native-screens": "~4.10.0",
42
42
  "react-native-web": "~0.20.0",
@@ -51,7 +51,7 @@
51
51
  "@types/react": "~19.0.10",
52
52
  "@types/react-test-renderer": "^19.0.0",
53
53
  "jest": "^29.2.1",
54
- "jest-expo": "~53.0.0-preview.0",
54
+ "jest-expo": "~53.0.0-preview.1",
55
55
  "react-test-renderer": "19.0.0",
56
56
  "typescript": "^5.3.3"
57
57
  }