'What would my React Native Prefix look like?
So I have this code.
/**
* Learn more about deep linking with React Navigation
* https://reactnavigation.org/docs/deep-linking
* https://reactnavigation.org/docs/configuring-links
*/
import { LinkingOptions } from "@react-navigation/native";
import * as Linking from "expo-linking";
import { RootStackParamList } from "../types";
const prefixes = Linking.createURL("/");
console.log(prefixes);
const linking: LinkingOptions<RootStackParamList> = {
prefixes: [prefixes],
config: {
screens: {
Root: {
screens: {
BuyerSellerLeadSelector: {
screens: {
BuyerSellerLeadSelectorScreen: "",
},
},
},
},
Home: {
screens: {
Seller: "Seller",
Buyer: "Buyer",
Lead: "Lead",
},
},
Modal: "modal",
NotFound: "*",
Login: "Login",
},
},
};
export default linking;
I want to be able to remove the Linking.createURL('/') and hardcore my prefixes, but I'm not sure how to get them. How would I get them? and/or what would they look like?
My apps name is:
{
"name": "CleanMyCarV2",
"displayName": "CleanMyCarV2"
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|