This repository has been archived on 2025-06-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dusken-client/native-base-theme/components/Toast.js
T
2017-08-18 00:13:33 +02:00

39 lines
839 B
JavaScript

import variable from "./../variables/platform";
export default (variables = variable) => {
const platform = variables.platform;
const toastTheme = {
".danger": {
backgroundColor: variables.brandDanger
},
".warning": {
backgroundColor: variables.brandWarning
},
".success": {
backgroundColor: variables.brandSuccess
},
backgroundColor: "rgba(0,0,0,0.8)",
borderRadius: platform === "ios" ? 5 : 0,
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center",
padding: 10,
minHeight: 50,
"NativeBase.Text": {
color: "#fff",
flex: 1
},
"NativeBase.Button": {
backgroundColor: "transparent",
height: 30,
elevation: 0,
"NativeBase.Text": {
fontSize: 14
}
}
};
return toastTheme;
};