mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 21:35:21 +01:00
226 lines
4.1 KiB
JavaScript
226 lines
4.1 KiB
JavaScript
/** @type {AppStorage} */
|
|
let BlueApp = require('./BlueApp')
|
|
import React, { Component } from 'react'
|
|
import { Button } from 'react-native-elements'
|
|
import { SafeAreaView } from 'react-navigation'
|
|
import { FormLabel, FormInput, Divider, Icon, Card, Text, Header, List, ListItem, Avatar } from 'react-native-elements'
|
|
import { ActivityIndicator, StyleSheet, ListView, View } from 'react-native'
|
|
|
|
export class BlueButton extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<Button
|
|
{...this.props}
|
|
style={{marginTop: 20, borderRadius: 6, borderWidth: 0.7, borderColor: '#ffffff'}}
|
|
borderRadius={10}
|
|
backgroundColor={BlueApp.settings.buttonBackground}
|
|
|
|
/>
|
|
)
|
|
}
|
|
/* icon={{name: 'home', type: 'octicon'}} */
|
|
}
|
|
|
|
export class SafeBlueArea extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<SafeAreaView
|
|
{...this.props}
|
|
forceInset={{ horizontal: 'always' }} style={{flex: 1, backgroundColor: BlueApp.settings.brandingColor}}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueCard extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<Card
|
|
{...this.props}
|
|
titleStyle={{color: 'white'}}
|
|
containerStyle={{backgroundColor: BlueApp.settings.buttonBackground}}
|
|
wrapperStyle={{backgroundColor: BlueApp.settings.buttonBackground}}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueText extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<Text
|
|
{...this.props}
|
|
style={{color: 'white'}}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueListItem extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<ListItem
|
|
{...this.props}
|
|
containerStyle={{backgroundColor: BlueApp.settings.brandingColor}}
|
|
titleStyle={{color: 'white', fontSize: 18}}
|
|
subtitleStyle={{color: 'white'}}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueFormLabel extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<FormLabel
|
|
{...this.props}
|
|
labelStyle={{color: 'white'}}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueFormInput extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<FormInput
|
|
{...this.props}
|
|
inputStyle={{color: 'white'}}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueHeader extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<Header
|
|
{...this.props}
|
|
backgroundColor={BlueApp.settings.brandingColor}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueSpacing extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<View
|
|
{...this.props}
|
|
style={{height: 60, backgroundColor: BlueApp.settings.brandingColor}}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueSpacing20 extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<View
|
|
{...this.props}
|
|
style={{height: 20, backgroundColor: BlueApp.settings.brandingColor}}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueListView extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<ListView
|
|
{...this.props}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueList extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<List
|
|
{...this.props}
|
|
containerStyle={{backgroundColor: BlueApp.settings.brandingColor}}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueView extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<View
|
|
{...this.props}
|
|
containerStyle={{backgroundColor: BlueApp.settings.brandingColor}}
|
|
/>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class BlueLoading extends Component {
|
|
constructor (props) {
|
|
super(props)
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<SafeBlueArea >
|
|
<View style={{flex: 1, paddingTop: 200}}>
|
|
<ActivityIndicator />
|
|
</View>
|
|
</SafeBlueArea>
|
|
)
|
|
}
|
|
}
|