remove old components

This commit is contained in:
Vladimir Volek
2019-05-15 13:15:39 +02:00
parent e82681ecce
commit 829751da45
5 changed files with 0 additions and 85 deletions

View File

@@ -1,16 +0,0 @@
import React from 'react';
import { View } from 'react-native';
import HeaderButton from './HeaderButton';
interface Props {
onClick: (url: string) => void;
}
export const Header = ({ onClick }: Props) => (
<View>
<HeaderButton title="Home" onClick={() => onClick('/')} />
<HeaderButton title="Wallet" onClick={() => onClick('/wallet')} />
<HeaderButton title="Wallet/send#/1" onClick={() => onClick('/wallet/send#/1')} />
<HeaderButton title="Wallet/send#/2" onClick={() => onClick('/wallet/send#/2')} />
</View>
);

View File

@@ -1,13 +0,0 @@
import React from 'react';
import { Button } from 'react-native';
interface Props {
title: string;
onClick: () => void;
}
const HeaderButton = (props: Props) => {
return <Button onPress={props.onClick} title={props.title} />;
};
export default HeaderButton;

View File

@@ -1,10 +0,0 @@
import React from 'react';
import { Button } from 'react-native';
interface Props {
onPress: () => void;
}
export const StartButton = (props: Props) => {
return <Button onPress={props.onPress} title="Start" />;
};

View File

@@ -1,13 +0,0 @@
{
"name": "@trezor/components",
"version": "1.0.0",
"private": true,
"dependencies": {
"react": "16.8.6",
"react-native": "0.59.4"
},
"devDependencies": {
"@types/react": "^16.7.11",
"@types/react-native": "^0.57.41"
}
}

View File

@@ -1,33 +0,0 @@
import { StyleSheet, TextStyle } from 'react-native';
const colors = {
text: '#333',
};
type Colors = typeof colors;
const baseFontSize = 16;
const baseLineHeight = 24;
class Theme {
text: TextStyle;
// container: ViewStyle;
// TODO: https://medium.com/react-native-training/react-native-custom-fonts-ccc9aacf9e5e
constructor(colors: Colors) {
this.text = {
// fontFamily:
// '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
fontSize: baseFontSize,
lineHeight: baseLineHeight,
color: colors.text,
};
// this.container = {
// width: 123,
// color: 'red'
// }
}
}
export const lightTheme = StyleSheet.create(new Theme(colors));