-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All styles are now fitting UWP. Only an extra button and linking vector icons should do the job. Update is comining soon. Former-commit-id: aff7012
- Loading branch information
Showing
14 changed files
with
157 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,36 @@ | ||
import React, { PureComponent } from 'react'; | ||
import { View, Text, Button } from 'react-native'; | ||
import { SecondaryColour } from '../value'; | ||
import { ScrollView, View, Text } from 'react-native'; | ||
import { Button } from 'react-native-elements'; | ||
import { styles } from './UWPEntryStyles'; | ||
import { SmartTouchable } from '../component/index'; | ||
import { Actions } from 'react-native-router-flux'; | ||
import { VERSION } from '../value'; | ||
|
||
export default class UWPEntry extends PureComponent { | ||
render() { | ||
const { blueButton, goButton, greenButton, redButton, mainViewStyle, horizontalViewStyle, textStyle, topMarginStyle } = styles; | ||
return ( | ||
<View> | ||
<Button title='New Release' onPress={() => Actions.NewRelease()}/> | ||
</View> | ||
<ScrollView> | ||
<View> | ||
<View style={topMarginStyle}> | ||
<Text style={textStyle}>Anime</Text> | ||
<Button title='New Release' onPress={() => Actions.NewRelease()} buttonStyle={blueButton}/> | ||
<Button title='New Season' onPress={() => Actions.NewSeason()} buttonStyle={blueButton}/> | ||
<Button title='Popular' onPress={() => Actions.Popular()} buttonStyle={blueButton}/> | ||
<Button title='Movie' onPress={() => Actions.Movie()} buttonStyle={blueButton}/> | ||
<Button title='Seach Anime' onPress={() => Actions.SearchAnime()} buttonStyle={redButton}/> | ||
</View> | ||
<View style={topMarginStyle}> | ||
<Text style={textStyle}>Utilities</Text> | ||
<Button title='Schedule' onPress={() => Actions.Schedule()} buttonStyle={greenButton}/> | ||
<Button title='Genre' onPress={() => Actions.Genre()} buttonStyle={goButton}/> | ||
<Button title='ToWatch list' onPress={() => Actions.ToWatch()} buttonStyle={redButton}/> | ||
</View> | ||
<View style={topMarginStyle}> | ||
<Button title='Settings' onPress={() => Actions.Setting()} buttonStyle={goButton}/> | ||
</View> | ||
</View> | ||
</ScrollView> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { StyleSheet } from 'react-native'; | ||
import { BlueColour, RedColour, GreenColour, SecondaryColour } from '../value'; | ||
|
||
export const styles = StyleSheet.create({ | ||
blueButton: { | ||
backgroundColor: BlueColour, | ||
}, | ||
redButton: { | ||
backgroundColor: RedColour | ||
}, | ||
goButton: { | ||
backgroundColor: SecondaryColour | ||
}, | ||
greenButton: { | ||
backgroundColor: GreenColour | ||
}, | ||
mainViewStyle: { | ||
flex: 1, | ||
}, | ||
topMarginStyle: { | ||
marginTop: 8, | ||
marginBottom: 8 | ||
}, | ||
textStyle: { | ||
textAlign: 'center', | ||
fontSize: 24, | ||
fontWeight: 'bold' | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React, { Component } from 'react'; | ||
import { Platform } from 'react-native'; | ||
|
||
class AnimeButton extends Component { | ||
render() { | ||
const { onPress, color, title } = this.props; | ||
if (Platform.OS == 'windows') { | ||
let Button = require('react-native-elements').Button; | ||
return ( | ||
<Button title={title} onPress={onPress} buttonStyle={{backgroundColor: color}}/> | ||
) | ||
} else { | ||
let Button = require('react-native').Button; | ||
return ( | ||
<Button title={title} onPress={onPress} color={color}/> | ||
) | ||
} | ||
} | ||
} | ||
|
||
export {AnimeButton}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { StyleSheet } from 'react-native'; | ||
|
||
export const styles = StyleSheet.create({ | ||
inputStyle: { | ||
width: '100%', | ||
height: 40, | ||
textAlign: 'center', | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { StyleSheet } from 'react-native'; | ||
|
||
export const styles = StyleSheet.create({ | ||
switchViewStyle: { | ||
flexDirection: 'row', | ||
height: 44, | ||
padding: 16, | ||
}, | ||
textStyle: { | ||
color: 'black', | ||
fontWeight: 'bold', | ||
width: '85%', | ||
height: 24, | ||
alignSelf: 'center' | ||
}, | ||
switchStyle: { | ||
alignSelf: 'center', | ||
}, | ||
versionStyle: { | ||
fontSize: 12, | ||
padding: 16, | ||
}, | ||
dividerStyle: { | ||
height: 0.75, | ||
marginBottom: 4, | ||
marginTop: 4 | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters