-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from hummingbird-me/develop
Merge 6.6 into Master
- Loading branch information
Showing
69 changed files
with
1,215 additions
and
262 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
Binary file added
BIN
+776 Bytes
android/app/src/main/res/drawable-hdpi/ic_stat_onesignal_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+546 Bytes
android/app/src/main/res/drawable-mdpi/ic_stat_onesignal_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.16 KB
android/app/src/main/res/drawable-xhdpi/ic_stat_onesignal_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.59 KB
android/app/src/main/res/drawable-xxhdpi/ic_stat_onesignal_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.7 KB
android/app/src/main/res/drawable-xxxhdpi/ic_onesignal_large_icon_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.52 KB
android/app/src/main/res/drawable-xxxhdpi/ic_stat_onesignal_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
import React from 'react'; | ||
import { View, Text } from 'react-native'; | ||
import PropTypes from 'prop-types'; | ||
import FastImage from 'react-native-fast-image'; | ||
import styles from './styles'; | ||
|
||
export const ImageStatus = ({ title, text, image, style }) => ( | ||
<View style={[styles.statusWrapper, style]}> | ||
<Text style={styles.statusTitle}>{title}</Text> | ||
<Text style={styles.statusText}>{text}</Text> | ||
<FastImage style={styles.statusImage} source={image} /> | ||
</View> | ||
); | ||
|
||
ImageStatus.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
text: PropTypes.string.isRequired, | ||
image: PropTypes.object.isRequired, | ||
style: PropTypes.object, | ||
}; |
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 @@ | ||
export * from './component'; |
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,37 @@ | ||
import { StyleSheet } from 'react-native'; | ||
import * as colors from 'kitsu/constants/colors'; | ||
|
||
const styles = StyleSheet.create({ | ||
statusWrapper: { | ||
marginTop: 4, | ||
padding: 16, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
backgroundColor: colors.darkPurple, | ||
}, | ||
statusTitle: { | ||
fontWeight: 'bold', | ||
fontSize: 16, | ||
color: colors.white, | ||
fontFamily: 'OpenSans', | ||
textAlign: 'center', | ||
margin: 4, | ||
width: 240, | ||
}, | ||
statusText: { | ||
width: 240, | ||
fontSize: 12, | ||
color: colors.lightGrey, | ||
fontFamily: 'OpenSans', | ||
textAlign: 'center', | ||
margin: 4, | ||
}, | ||
statusImage: { | ||
marginTop: 16, | ||
width: 140, | ||
height: 160, | ||
resizeMode: 'contain', | ||
}, | ||
}); | ||
|
||
export default styles; |
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,51 @@ | ||
import React, { PureComponent } from 'react'; | ||
import { View, TouchableOpacity } from 'react-native'; | ||
import { PropTypes } from 'prop-types'; | ||
import Icon from 'react-native-vector-icons/FontAwesome'; | ||
import { Input } from 'kitsu/components/Input'; | ||
import { styles } from './styles'; | ||
|
||
export class PasswordInput extends PureComponent { | ||
static propTypes = { | ||
value: PropTypes.string, | ||
onChangeText: PropTypes.func, | ||
}; | ||
|
||
static defaultProps = { | ||
value: '', | ||
onChangeText: null, | ||
}; | ||
|
||
state = { | ||
passwordVisible: false, | ||
}; | ||
|
||
toggleVisibility = () => { | ||
this.setState({ | ||
passwordVisible: !this.state.passwordVisible, | ||
}); | ||
} | ||
|
||
render() { | ||
const { value, onChangeText, ...props } = this.props; | ||
const { passwordVisible } = this.state; | ||
return ( | ||
<View style={styles.container}> | ||
<Input | ||
containerStyle={styles.input} | ||
{...props} | ||
secureTextEntry={!passwordVisible} | ||
value={value} | ||
onChangeText={onChangeText} | ||
autoCapitalize="none" | ||
/> | ||
<TouchableOpacity style={styles.toggle} onPress={this.toggleVisibility}> | ||
<Icon | ||
name={passwordVisible ? 'eye' : 'eye-slash'} | ||
style={styles.eyeIcon} | ||
/> | ||
</TouchableOpacity> | ||
</View> | ||
); | ||
} | ||
} |
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 @@ | ||
export * from './component'; |
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,31 @@ | ||
import { StyleSheet } from 'react-native'; | ||
import * as colors from 'kitsu/constants/colors'; | ||
|
||
export const styles = StyleSheet.create({ | ||
container: { | ||
flexDirection: 'row', | ||
backgroundColor: colors.white, | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
marginHorizontal: 16, | ||
height: 47, | ||
marginVertical: 4, | ||
borderRadius: 8, | ||
}, | ||
input: { | ||
flex: 1, | ||
marginHorizontal: 0, | ||
marginVertical: 0, | ||
}, | ||
eyeIcon: { | ||
color: colors.darkGrey, | ||
marginHorizontal: 8, | ||
fontSize: 18, | ||
backgroundColor: 'transparent', | ||
}, | ||
toggle: { | ||
height: 47, | ||
justifyContent: 'center', | ||
alignItems: '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
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
Oops, something went wrong.