Skip to content

Instantly share code, notes, and snippets.

@MovingGifts
Created June 18, 2017 09:12
Show Gist options
  • Save MovingGifts/b7544e10323949d829fc232cf062738c to your computer and use it in GitHub Desktop.
Save MovingGifts/b7544e10323949d829fc232cf062738c to your computer and use it in GitHub Desktop.
DrawerPanel
import React from 'react';
import RX from 'reactxp';
const styles = {
container: RX.Styles.createViewStyle({
flex: 1,
width: 100,
backgroundColor: 'red'
}),
drawerText: RX.Styles.createTextStyle({
fontSize: 16,
textAlign: 'center',
marginTop: 12,
color: 'black'
})
};
export default class DrawerPanel extends RX.Component {
render() {
return (
<RX.View style={ styles.container }>
<RX.Text style={ styles.drawerText }>
Here is a drawer
</RX.Text>
</RX.View>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment