-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Toast component and toast configuration
- Loading branch information
1 parent
f2696ed
commit 3f7c680
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { ErrorToast } from "react-native-toast-message"; | ||
|
||
export const toastConfig = { | ||
defaultToast: (props: any) => ( | ||
<ErrorToast | ||
{...props} | ||
contentContainerStyle={{ | ||
|
||
}} | ||
style={{ | ||
backgroundColor: "#FAFAFA", | ||
borderColor: "#6A59FF", | ||
}} | ||
text1Style={{ | ||
fontSize: 16, | ||
}} | ||
text2Style={{ | ||
fontSize: 14, | ||
color: "#262A50", | ||
fontWeight: "400", | ||
}} | ||
/> | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters