refactored text styles, not enough shared

This commit is contained in:
austinried
2021-07-08 17:56:05 +09:00
parent 3460b4014f
commit fe92c63a60
16 changed files with 358 additions and 346 deletions

View File

@@ -2,11 +2,10 @@ import { useNavigation } from '@react-navigation/core'
import { useAtom } from 'jotai'
import md5 from 'md5'
import React from 'react'
import { Button, Text, View } from 'react-native'
import { Button, StyleSheet, Text, View } from 'react-native'
import { v4 as uuidv4 } from 'uuid'
import { appSettingsAtom } from '@app/state/settings'
import { getAllKeys, multiRemove } from '@app/storage/asyncstorage'
import text from '@app/styles/text'
const TestControls = () => {
const navigation = useNavigation()
@@ -57,8 +56,8 @@ const ServerSettingsView = () => {
<Button title="Add default server" onPress={bootstrapServer} />
{appSettings.servers.map(s => (
<View key={s.id}>
<Text style={text.paragraph}>{s.address}</Text>
<Text style={text.paragraph}>{s.username}</Text>
<Text style={styles.text}>{s.address}</Text>
<Text style={styles.text}>{s.username}</Text>
</View>
))}
</View>
@@ -74,4 +73,10 @@ const SettingsView = () => (
</View>
)
const styles = StyleSheet.create({
text: {
color: 'white',
},
})
export default SettingsView