theme upd

This commit is contained in:
Feruz 2018-08-17 11:21:40 +03:00
parent f3980fd947
commit 4e35d7d407
5 changed files with 44 additions and 29 deletions

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

8
package-lock.json generated
View File

@ -9009,6 +9009,14 @@
"hoist-non-react-statics": "2.5.5"
}
},
"react-native-scrollable-tab-view": {
"version": "git+https://github.com/happypancake/react-native-scrollable-tab-view.git#2419c25a03f0fb346af8ce2c39fca869f259e716",
"requires": {
"create-react-class": "15.6.3",
"prop-types": "15.6.2",
"react-timer-mixin": "0.13.4"
}
},
"react-native-tab-view": {
"version": "0.0.77",
"resolved": "https://registry.npmjs.org/react-native-tab-view/-/react-native-tab-view-0.0.77.tgz",

View File

@ -104,22 +104,8 @@ class AuthorPage extends React.Component {
</Text>
<Text>{this.state.about.about}</Text>
</Body>
<Card
style={{
marginTop: 0,
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
}}
>
<CardItem
style={{
borderColor: 'lightgray',
borderTopWidth: 1,
borderBottomWidth: 1,
flexDirection: 'row',
}}
>
<Card style={styles.userDetailsCard}>
<CardItem style={styles.userDetail}>
<View style={{ flex: 0.3 }}>
<Text>
{this.state.author.post_count} Posts

View File

@ -34,6 +34,18 @@ const styles = createStyle({
top: -40,
},
accountNameText: {
fontWeight: '@FONT_WEIGHT_HEAVY',
fontWeight: '@fontWeight',
},
userDetailsCard: {
marginTop: 0,
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
},
userDetail: {
borderColor: 'lightgray',
borderTopWidth: 1,
borderBottomWidth: 1,
flexDirection: 'row',
},
});

View File

@ -1,5 +1,14 @@
import { createTheme } from 'react-native-theming';
const fonts = {
FONT_SIZE_SMALL: '12',
FONT_SIZE_MEDIUM: '14',
FONT_SIZE_LARGE: '16',
FONT_WEIGHT_LIGHT: '200',
FONT_WEIGHT_MEDIUM: '600',
FONT_WEIGHT_HEAVY: '800',
};
const themes = [
createTheme(
{
@ -8,12 +17,8 @@ const themes = [
buttonColor: 'blue',
buttonText: 'white',
statusBar: 'dark-content',
FONT_SIZE_SMALL: 12,
FONT_SIZE_MEDIUM: 14,
FONT_SIZE_LARGE: 16,
FONT_WEIGHT_LIGHT: 200,
FONT_WEIGHT_MEDIUM: '600',
FONT_WEIGHT_HEAVY: '800',
fontSize: fonts.FONT_SIZE_MEDIUM,
fontWeight: fonts.FONT_WEIGHT_MEDIUM,
},
'Light'
),
@ -24,12 +29,8 @@ const themes = [
buttonColor: 'yellow',
buttonText: 'black',
statusBar: 'light-content',
FONT_SIZE_SMALL: 12,
FONT_SIZE_MEDIUM: 14,
FONT_SIZE_LARGE: 16,
FONT_WEIGHT_LIGHT: 200,
FONT_WEIGHT_MEDIUM: '600',
FONT_WEIGHT_HEAVY: '800',
fontSize: fonts.FONT_SIZE_MEDIUM,
fontWeight: fonts.FONT_WEIGHT_MEDIUM,
},
'Dark'
),