Skip to content

Commit

Permalink
[TS] Change successView to TS.
Browse files Browse the repository at this point in the history
  • Loading branch information
supervons committed Feb 14, 2024
1 parent 935e5cb commit 7e6e6f4
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ import React from "react";
import { Text, View } from "react-native";
import LottieView from "lottie-react-native";
import { Button } from "react-native-elements";

export default function SuccessView(props) {
type MyProps = {
route: {
params: {
successTitle: string;
};
};
navigation: any;
};
export default function SuccessView(props: MyProps): JSX.Element {
return (
<View style={{ flex: 1 }}>
<View style={{ height: 300 }}>
Expand All @@ -25,7 +32,7 @@ export default function SuccessView(props) {
}}>
<Button
onPress={() => {
navigation.popToTop();
props.navigation.popToTop();
}}
buttonStyle={{ width: 150, backgroundColor: "#b9b9b9" }}
containerStyle={{ marginTop: 10 }}
Expand Down

0 comments on commit 7e6e6f4

Please sign in to comment.