0
0
KKKhalid Khan
The above code defines an interface AppProps and a class App that extends React.Component . AppProps defines an array of properties that the class App can access. The render() method in the class App returns an HTML markup document with a View element containing a Text element that declares the name of the class App .
Library: react-native
Shortcut: reactnative.container.reactredux
import * as React from 'react';
import { View, StyleSheet, Text } from 'react-native';
import { connect } from 'react-redux';
export interface AppProps {
}
class App extends React.Component<AppProps, any> {
render() {
return (
<View>
<Text>App</Text>
</View>
);
}
}
const mapStateToProps = state => {
return {
};
}
const mapDispatchToProps = dispatch => {
return {
};
}
export default connect(mapStateToProps, mapDispatchToProps)(App);