Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bd6f08
commit f20f661
Showing
25 changed files
with
549 additions
and
468 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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,24 @@ | |||
import React, { Component, PropTypes } from 'react'; | |||
import { ActivityIndicator } from 'react-native'; | |||
|
|||
import _variables from '../_styles/variables'; | |||
import style from './style'; | |||
|
|||
export default class Loading extends Component { | |||
|
|||
static propTypes = { | |||
loaded: PropTypes.bool, | |||
}; | |||
|
|||
render() { | |||
return ( | |||
<ActivityIndicator | |||
style={[style.itemFeedback, style.itemLoading]} | |||
animating={this.props.loaded} | |||
color={_variables.white} | |||
hidesWhenStopped | |||
size="small" | |||
/> | |||
); | |||
} | |||
} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,37 @@ | |||
import React, { Component, PropTypes } from 'react'; | |||
import { TouchableOpacity } from 'react-native'; | |||
import { createIconSetFromFontello } from 'react-native-vector-icons'; | |||
|
|||
import style from './style'; | |||
|
|||
import { colors } from '../_utils/networksColors'; | |||
import fontelloConfig from '../config.json'; | |||
|
|||
const Icon = createIconSetFromFontello(fontelloConfig); | |||
|
|||
export default class Remove extends Component { | |||
|
|||
static propTypes = { | |||
network: PropTypes.string, | |||
onPress: PropTypes.func, | |||
}; | |||
|
|||
render() { | |||
const { onPress, network } = this.props; | |||
|
|||
return ( | |||
<TouchableOpacity | |||
activeOpacity={0.85} | |||
style={[style.itemFeedback, style.itemRemove]} | |||
onPress={onPress} | |||
> | |||
<Icon | |||
style={[style.itemIcon, style.itemRemoveIcon]} | |||
name="cross" | |||
color={colors(network)} | |||
size={8} | |||
/> | |||
</TouchableOpacity> | |||
); | |||
} | |||
} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
import React, { Component, PropTypes } from 'react'; | |||
import { TouchableOpacity } from 'react-native'; | |||
import { createIconSetFromFontello } from 'react-native-vector-icons'; | |||
|
|||
import style from './style'; | |||
|
|||
import { colors } from '../_utils/networksColors'; | |||
import fontelloConfig from '../config.json'; | |||
|
|||
const Icon = createIconSetFromFontello(fontelloConfig); | |||
|
|||
export default class Success extends Component { | |||
|
|||
static propTypes = { | |||
network: PropTypes.string, | |||
}; | |||
|
|||
render() { | |||
return ( | |||
<TouchableOpacity | |||
activeOpacity={0.85} | |||
style={[style.itemFeedback, style.itemSuccess]} | |||
> | |||
<Icon | |||
style={[style.itemIcon, style.itemSuccessIcon]} | |||
name="check" | |||
color={colors(this.props.network)} | |||
size={10} | |||
/> | |||
</TouchableOpacity> | |||
); | |||
} | |||
} |
This file was deleted.
Oops, something went wrong.
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.