Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit ee5dad5

Browse files
authored
fix: deprecated import
refactor: updated the deprecated Linking import from 'expo' to 'expo linking'
2 parents 80726c3 + 2af91fd commit ee5dad5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

App.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { View, Text, Button } from "react-native";
33
import { useLinking, NavigationContainer } from "@react-navigation/native";
44
import { createStackNavigator } from "@react-navigation/stack";
55
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
6-
import { Linking } from "expo";
6+
import * as Linking from 'expo-linking'
7+
78

89
const prefix = Linking.makeUrl("/");
910
const config = {
@@ -83,7 +84,9 @@ export default function App() {
8384
return (
8485
<View
8586
style={{ flex: 1, justifyContent: "center", alignItems: "center" }}
86-
></View>
87+
>
88+
This is the Settings Page.
89+
</View>
8790
);
8891
}
8992

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@react-navigation/native": "^5.0.0",
1414
"@react-navigation/stack": "^5.0.0",
1515
"expo": "~36.0.0",
16+
"expo-linking": "^1.0.3",
1617
"react": "~16.9.0",
1718
"react-dom": "~16.9.0",
1819
"react-native": "~0.61.4",

0 commit comments

Comments
 (0)