0
0
KKKhalid Khan
Create a stateful React Component with typescript with Props, State, and a constructor.
Library: react-native
Shortcut: reactnative.component.full
import * as React from 'react';
import { View, StyleSheet, Text } from 'react-native';
export interface filename.extProps {
}
export interface filename.extState {
}
export default class filename.extComponent extends React.Component<filename.extProps, filename.extState> {
constructor(props: filename.extProps) {
super(props);
this.state = {
};
}
public render() {
return (
<View>
<Text>filename.ext Component</Text>
</View>
);
}
}