...
|
...
|
@@ -5,6 +5,7 @@ import Button from "apsl-react-native-button"; |
|
|
import {Actions} from "react-native-router-flux";
|
|
|
|
|
|
import Immutable, {List} from 'immutable';
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
|
|
|
let {
|
|
|
Component,
|
...
|
...
|
@@ -19,7 +20,12 @@ let { |
|
|
export default class SideMenu extends React.Component {
|
|
|
|
|
|
static propTypes = {
|
|
|
items: React.PropTypes.instanceOf(List),
|
|
|
items: ImmutablePropTypes.listOf(
|
|
|
ImmutablePropTypes.contains({
|
|
|
shopName:React.PropTypes.string,
|
|
|
shopsId: React.PropTypes.number,
|
|
|
})
|
|
|
),
|
|
|
onPressItem: React.PropTypes.func,
|
|
|
};
|
|
|
|
...
|
...
|
@@ -118,6 +124,7 @@ let styles = StyleSheet.create({ |
|
|
right: 15,
|
|
|
height: 28,
|
|
|
alignSelf: 'flex-end',
|
|
|
backgroundColor: 'transparent',
|
|
|
},
|
|
|
separator: {
|
|
|
height: 1,
|
...
|
...
|
|