Skip to content

Commit f998d1e

Browse files
ShivrajShivraj
Shivraj
authored and
Shivraj
committed
v2.0 -alpha1
1 parent a0823f3 commit f998d1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+3353
-6400
lines changed

Components/Base/NativeBaseComponent.js

+27-27
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ import React, {Component} from 'react';
55
import lightTheme from '../Themes/light';
66

77
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+
}
1212

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+
}
1717

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+
}
2222

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+
}
3030

31-
getContextForegroundColor() {
32-
return this.context.foregroundColor
33-
}
31+
getContextForegroundColor() {
32+
return this.context.foregroundColor
33+
}
3434

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+
}

Components/Themes/dark.js

-93
This file was deleted.

Components/Themes/light.js

-232
This file was deleted.

0 commit comments

Comments
 (0)