@@ -5,35 +5,35 @@ import React, {Component} from 'react';
5
5
import lightTheme from '../Themes/light' ;
6
6
7
7
export default class NativeBaseComponent extends Component {
8
- static contextTypes = {
9
- theme : React . PropTypes . object ,
10
- foregroundColor : React . PropTypes . string
11
- }
8
+ static contextTypes = {
9
+ NBtheme : React . PropTypes . object ,
10
+ foregroundColor : React . PropTypes . string
11
+ }
12
12
13
- static propTypes = {
14
- theme : React . PropTypes . object ,
15
- foregroundColor : React . PropTypes . string
16
- }
13
+ static propTypes = {
14
+ NBtheme : React . PropTypes . object ,
15
+ foregroundColor : React . PropTypes . string
16
+ }
17
17
18
- static childContextTypes = {
19
- theme : React . PropTypes . object ,
20
- foregroundColor : React . PropTypes . string
21
- }
18
+ static childContextTypes = {
19
+ NBtheme : React . PropTypes . object ,
20
+ foregroundColor : React . PropTypes . string
21
+ }
22
22
23
- getChildContext ( ) {
24
- return {
25
- theme : this . props . theme ? this . props . theme : this . getTheme ( ) ,
26
- foregroundColor : this . props . foregroundColor ?
27
- this . props . foregroundColor : this . getTheme ( ) . textColor
28
- } ;
29
- }
23
+ getChildContext ( ) {
24
+ return {
25
+ NBtheme : this . props . NBtheme ? this . props . NBtheme : this . getTheme ( ) ,
26
+ foregroundColor : this . props . foregroundColor ?
27
+ this . props . foregroundColor : this . getTheme ( ) . textColor
28
+ } ;
29
+ }
30
30
31
- getContextForegroundColor ( ) {
32
- return this . context . foregroundColor
33
- }
31
+ getContextForegroundColor ( ) {
32
+ return this . context . foregroundColor
33
+ }
34
34
35
- getTheme ( ) {
36
- return this . props . theme ? this . props . theme :
37
- this . context . theme || lightTheme
38
- }
39
- }
35
+ getTheme ( ) {
36
+ return this . props . NBtheme ? this . props . NBtheme :
37
+ this . context . NBtheme || lightTheme
38
+ }
39
+ }
0 commit comments