Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Require working on RN. Formatting toast
Browse files Browse the repository at this point in the history
  • Loading branch information
dilan-dio4 committed Jun 4, 2021
1 parent bdf4993 commit 8f0045b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion native-example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2897,7 +2897,7 @@
"version" "0.1.2"

"easybase-react@github:easybase/easybase-react#dev":
"resolved" "git+ssh://git@github.com/easybase/easybase-react.git#d7fa85061e79dcc57768678110a887df53fb4d4c"
"resolved" "git+ssh://git@github.com/easybase/easybase-react.git#bdf49934a1d76f0b05c12d1924b301c53fb144ff"
"version" "2.1.15"
dependencies:
"easybasejs" "4.2.13"
Expand Down
8 changes: 6 additions & 2 deletions src/ui/NativeAuth/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ const ToastRoot = styled.View((props: any) => ({
flex: 1,
justifyContent: "center",
alignItems: "center",
zIndex: 1000,
...(props.theme.toast ? { ...props.theme.toast } : {})
}))

Expand All @@ -182,7 +183,10 @@ const ToastContainer = styled.TouchableOpacity((props: any) => ({

const ToastText = styled.Text((props: any) => ({
position: "relative",
margin: 10,
marginLeft: 20,
marginRight: 20,
marginTop: 10,
marginBottom: 10,
fontWeight: 'bold',
fontSize: 15,
color: "#010101",
Expand All @@ -192,7 +196,7 @@ const ToastText = styled.Text((props: any) => ({
const CloseToastText = styled.Text((props: any) => ({
color: "#555",
position: 'relative',
margin: 10,
marginRight: 15,
fontWeight: '600',
...(props.theme.closeToastText ? { ...props.theme.closeToastText } : {})
}))
Expand Down

0 comments on commit 8f0045b

Please sign in to comment.