| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- import React from 'react';
- import { Image, Pressable, StyleSheet, View } from 'react-native';
- import TopChargeBackground from '../icons/TopChargeBackground';
- export const BackButton = () => {
- return (
- <Pressable
- style={Styles.backIcon}
- android_ripple = {{
- color: '#909090',
- radius: 22,
- borderless: true
- }}
- onPress={() => {
- goBack();
- }}>
- <BackIcon/>
- </Pressable>
- )
- }
- export const BackIcon = () => {
- return <MaterialIcons name={isIOS ? 'arrow-back-ios' : 'arrow-back'} size={24} color={'#333333'} />
- }
- export const StationBack = ({bottom = 24, scale=1.0}) => {
- return (
- // <Image
- // style={{
- // right: 0,
- // bottom: bottom,
- // width: 125.8,
- // height: 137.64,
- // position: 'absolute'
- // }}
- // source={require('../images/charge/bg-top-station.png')}/>
- <View
- style={{
- right: 0,
- bottom: bottom,
- width: 127.5 * scale,
- height: 136.67 * scale,
- position: 'absolute',
- alignItems: 'flex-end'
- }}>
- <TopChargeBackground width={127.5 * scale} height={136.67 * scale}/>
- </View>
- );
- }
- export const Styles = StyleSheet.create({
- toolbar: {
- height: toolbarSize,
- paddingLeft: 2,
- paddingRight: 2,
- paddingTop: isIOS ? statusHeight : 0,
- alignItems: 'center',
- flexDirection: 'row',
- justifyContent: 'center',
- backgroundColor: colorThemes
- },
- backIcon: {
- width: 48,
- height: 48,
- alignItems: 'center',
- justifyContent: 'center'
- },
- content: {
- flex: 1,
- paddingRight: 48,
- alignItems: 'center'
- },
- logo: {
- width:123.8,
- height: 38.95
- }
- });
- export default Toolbar = (props) => {
- return (
- <View style={Styles.toolbar}>
- <BackButton/>
- <View style={Styles.content}>
- <Image
- source={require('../images/tool-logo.png')}
- style={Styles.logo}
- />
- </View>
- </View>
- )
- }
|