brianium / drinkingtime Goto Github PK
View Code? Open in Web Editor NEWA simple app demonstrating typescript + krell + react-native + storybook
A simple app demonstrating typescript + krell + react-native + storybook
Should give the text input on the user screen a keyboardType
prop with a value of numeric
If the isFirstVisit
prop is true for the user
screen, the dot menu should be hidden
react-navigation screen components seem to influence styling, the easiest solution seems to be fixing it at the screen level in the ui package. Just be sure to explicitly set background colors and set margins on components within the screen, not the screen itself:
For instance, the home screen becomes: (note styles.view and styles.button)
import React from 'react';
import { StyleSheet, View } from 'react-native';
import SafeAreaView from '../../components/SafeAreaView';
import Text, { TextStyle } from '../../components/Text';
import Button from '../../components/Button';
import Drink, { DrinkType, Size } from '../../components/Drink';
import colors from '../../lib/colors';
const Home = (props) => (<SafeAreaView style={styles.view}>
<Drink size={Size.Large} style={styles.drink} type={DrinkType.Beer}/>
<Text style={styles.title} textStyle={TextStyle.Title}>
Drinking Time
</Text>
<View style={styles.button}>
<Button text="Start Drinking" onPress={props.onButtonPress}/>
</View>
</SafeAreaView>);
const styles = StyleSheet.create({
button: {
flex: 1,
justifyContent: 'flex-end',
marginBottom: 83,
width: '100%',
},
drink: {
marginTop: 62,
},
title: {
color: colors.black,
fontSize: 48,
marginTop: 24,
},
view: {
backgroundColor: 'white',
alignItems: 'center',
justifyContent: 'center',
},
});
export default Home;
A couple of user screen enhancements:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.