-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
37 lines (30 loc) · 775 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React, {Component} from 'react';
import {View} from 'react-native';
import pokemon from './src/data/pokemon.js';
import Header from './src/components/Header';
import CardList from './src/components/CardList';
type Props = {};
export default class App extends Component<Props> {
viewAction = (name) => {};
bookmarkAction = (name) => {};
shareAction = (name) => {};
render() {
return (
<View style={styles.container}>
<Header title={'RNA11Y'} />
<CardList
data={pokemon}
viewAction={this.viewAction}
bookmarkAction={this.bookmarkAction}
shareAction={this.shareAction}
/>
</View>
);
}
}
const styles = {
container: {
flex: 10,
backgroundColor: '#FFF',
},
};