coinforbarter-react-native
Version:
CoinForBarter ReactNative Library - Integrate cryptocurrency payments for goods and services in your Mobile App
52 lines (51 loc) • 1.12 kB
JavaScript
import { Dimensions } from 'react-native';
const width = Dimensions.get('window').width;
const notification = {
backgroundColor: 'white',
borderRadius: 3,
shadowColor: 'rgba(0, 0, 0, 0.8)',
shadowOffset: {
width: -1,
height: 2,
},
shadowOpacity: 2,
shadowRadius: 3,
elevation: 5,
width: width / 2,
};
const notificationAnimation = {
height: 3,
backgroundColor: '#3D0040',
position: 'absolute',
};
const notificationAnimationH2 = {
backgroundColor: 'rgb(233, 190, 0)',
marginTop: 3,
position: 'absolute',
right: 0,
left: 0,
width,
};
const notificationAnimationP = {
color: '#3D0040',
};
const absolute = {
position: 'absolute',
};
const movingSlider = {
backgroundColor: 'white',
overflow: 'hidden',
width: 3,
};
const movingSliderText = {
color: 'white',
};
export const NotificationStyle = {
notificationAnimation,
movingSlider,
movingSliderText,
notificationAnimationH2,
notificationAnimationP,
absolute,
notification,
};