mirror of
https://github.com/zhigang1992/react-native-swipeout.git
synced 2026-01-12 22:50:59 +08:00
- 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
46 lines
803 B
JavaScript
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 |