40 lines
831 B
JavaScript
40 lines
831 B
JavaScript
// Metro module 1487 (f1488).
|
|
export function goBack() {
|
|
return {
|
|
type: "GO_BACK"
|
|
};
|
|
}
|
|
export function navigate(...args) {
|
|
if (typeof args[0] === "string") {
|
|
return {
|
|
type: "NAVIGATE",
|
|
payload: {
|
|
name: args[0],
|
|
params: args[1]
|
|
}
|
|
};
|
|
}
|
|
const payload = args[0] || {};
|
|
if (!payload.hasOwnProperty("key") && !payload.hasOwnProperty("name")) {
|
|
throw new Error("You need to specify name or key when calling navigate with an object as the argument. See https://reactnavigation.org/docs/navigation-actions#navigate for usage.");
|
|
}
|
|
return {
|
|
type: "NAVIGATE",
|
|
payload
|
|
};
|
|
}
|
|
export function reset(a0) {
|
|
return {
|
|
type: "RESET",
|
|
payload: a0
|
|
};
|
|
}
|
|
export function setParams(a0) {
|
|
return {
|
|
type: "SET_PARAMS",
|
|
payload: {
|
|
params: a0
|
|
}
|
|
};
|
|
}
|