Files
react-native-swipeout/styles.js
Dan Cormier 71ca1f0e6e better state names, button zindex, button whitespace
- Buttons fixed with and appear from under one another
- State names now explicitly reflect what they represent
- Add backgroundColor prop
- Add default backgroundColor
- Add text wrap for button text
- Remove empty componentDidMount function
- Replace “this” with “self” in render
- Clean up json formatting (commas at the end and on every line now)
- Update gif
2015-05-30 02:49:47 -04:00

46 lines
803 B
JavaScript

var React = require('react-native')
var {StyleSheet} = React
var styles = StyleSheet.create({
swipeout: {
backgroundColor: '#dbddde',
flex: 1,
overflow: 'hidden',
},
swipeoutBtnTouchable: {
flex: 1,
},
swipeoutBtn: {
alignItems: 'center',
backgroundColor: '#b6bec0',
flex: 1,
justifyContent: 'center',
overflow: 'hidden',
},
swipeoutBtnText: {
color: '#fff',
textAlign: 'center',
},
swipeoutBtns: {
bottom: 0,
flex: 1,
flexDirection: 'row',
position: 'absolute',
right: 0,
top: 0,
},
swipeoutContent: {
flex: 1,
},
colorDelete: {
backgroundColor: '#fb3d38',
},
colorPrimary: {
backgroundColor: '#006fff'
},
colorSecondary: {
backgroundColor: '#fd9427'
},
})
module.exports = styles