https://github.com/nitaking/react-native-create-templete
React Native create files in one page
https://github.com/nitaking/react-native-create-templete
react react-native
Last synced: about 1 year ago
JSON representation
React Native create files in one page
- Host: GitHub
- URL: https://github.com/nitaking/react-native-create-templete
- Owner: nitaking
- Created: 2018-08-16T11:32:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-17T02:57:07.000Z (over 7 years ago)
- Last Synced: 2025-03-11T04:37:59.811Z (about 1 year ago)
- Topics: react, react-native
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-create-templete
- flow
## Components
```jsx
// @flow
import React, { Component } from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import styles from './styles';
type Props = {
};
export default class MyComponent extends Component {
static defaultProps = {
};
render() {
return (
);
}
}
```
## Stateless Functional Components
```jsx
// @flow
import React, { Component } from 'react';
import { View } from 'react-native';
import styles from './styles';
type Props = {
};
const component = (props:Props) => {
const { value } = props;
return (
);
}
export default component;
```
## Styles
```jsx
// @flow
import { StyleSheet } from 'react-native';
const styles = StyleSheet.create({
container: {
},
});
export default styles;
```