import React, {
View,
} from 'react-native'
// functional components
const myComponent = props => {
return (
<View></View>
)
}
// ---
// Props
// ---
myComponent.propTypes = {
}
myComponent.defaultProps = {
}
// ---
// Styles
// ---
const styles = StyleSheet.create({
})
export default myComponent
- Never forget to write [PropTypes and DefaultProps](https://facebook.github.io/react/docs/reusable-components.html), by doing this you are helping other developers to understand how your component works.
- [Name your git branches](http://stackoverflow.com/a/6065944/1512430) as `group/*`. Never use your nickname or other words not related to what you are doing at the moment. The most common groups for this project are:
- `ui/*`
- `fix/*`
- `feature/*`