Skip to content

Instantly share code, notes, and snippets.

@itsramiel
Created June 4, 2022 07:39
Show Gist options
  • Save itsramiel/1bc9f6f4ab97ed303d3412813ad4f36d to your computer and use it in GitHub Desktop.
Save itsramiel/1bc9f6f4ab97ed303d3412813ad4f36d to your computer and use it in GitHub Desktop.
import { Button, StyleSheet, Text, View } from "react-native";
import React from "react";
import { ProfileProps } from "../navigation/types";
const Profile = ({ route }: ProfileProps) => {
const { callback } = route.params;
return (
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<Button title="call passed callback" onPress={callback} />
</View>
);
};
export default Profile;
const styles = StyleSheet.create({});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment