File tree Expand file tree Collapse file tree 1 file changed +11
-24
lines changed Expand file tree Collapse file tree 1 file changed +11
-24
lines changed Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
- import {
3
- StyleSheet ,
4
- View ,
5
- Text ,
6
- requireNativeComponent ,
7
- findNodeHandle ,
8
- UIManager ,
9
- } from 'react-native' ;
10
- import { ViewPropTypes , PropTypes } from './Util'
2
+ import { requireNativeComponent } from 'react-native' ;
3
+ import { ViewPropTypes , PropTypes } from './Util'
4
+
11
5
const RCTClassicsHeader = requireNativeComponent ( 'RCTClassicsHeader' , RCTClassicsHeader ) ;
12
6
13
- class ClassicsHeader extends Component {
7
+ export default class ClassicsHeader extends Component {
8
+ static propTypes = {
9
+ primaryColor : PropTypes . string ,
10
+ accentColor : PropTypes . string ,
11
+ ...ViewPropTypes ,
12
+ }
14
13
15
14
render ( ) {
16
- return (
17
- < RCTClassicsHeader
18
- { ...this . props }
19
- />
20
-
21
- )
15
+ return ( < RCTClassicsHeader { ...this . props } /> )
22
16
}
23
- }
24
-
25
- ClassicsHeader . propTypes = {
26
- primaryColor :PropTypes . string ,
27
- accentColor :PropTypes . string ,
28
- ...ViewPropTypes ,
29
- }
30
- export default ClassicsHeader ;
17
+ }
You can’t perform that action at this time.
0 commit comments