-
Notifications
You must be signed in to change notification settings - Fork 567
/
App.js
31 lines (29 loc) · 852 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View, PixelRatio } from 'react-native';
import * as variables from './style-dictionary-dist/variables';
export default function App() {
return (
<View style={styles.container}>
<Text style={styles.title}>Testing! Testing!</Text>
<Text style={styles.p}>All done!</Text>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: variables.colorBrand01,
alignItems: 'center',
justifyContent: 'center',
},
title: {
fontSize: PixelRatio.getFontScale() * variables.sizeFontMd.scale,
color: variables.colorBrand02,
},
p: {
fontSize: PixelRatio.getFontScale() * variables.sizeFontSm.number,
color: variables.colorBrand02,
},
});