From f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Mon, 19 Jul 2021 20:06:08 +0300 Subject: Apply Prettier --- app/screens/demo/demo-list-screen.tsx | 34 ++++++++++------ app/screens/demo/demo-screen.tsx | 77 +++++++++++++++++++---------------- 2 files changed, 64 insertions(+), 47 deletions(-) (limited to 'app/screens/demo') diff --git a/app/screens/demo/demo-list-screen.tsx b/app/screens/demo/demo-list-screen.tsx index ae66307..282bf4a 100644 --- a/app/screens/demo/demo-list-screen.tsx +++ b/app/screens/demo/demo-list-screen.tsx @@ -1,10 +1,16 @@ -import React, { useEffect } from "react" -import { FlatList, TextStyle, View, ViewStyle, ImageStyle } from "react-native" -import { useNavigation } from "@react-navigation/native" -import { observer } from "mobx-react-lite" -import { Header, Screen, Text, Wallpaper, AutoImage as Image } from "../../components" -import { color, spacing } from "../../theme" -import { useStores } from "../../models" +import React, { useEffect } from 'react' +import { FlatList, TextStyle, View, ViewStyle, ImageStyle } from 'react-native' +import { useNavigation } from '@react-navigation/native' +import { observer } from 'mobx-react-lite' +import { + Header, + Screen, + Text, + Wallpaper, + AutoImage as Image, +} from '../../components' +import { color, spacing } from '../../theme' +import { useStores } from '../../models' const FULL: ViewStyle = { flex: 1, @@ -19,14 +25,14 @@ const HEADER: TextStyle = { } const HEADER_TITLE: TextStyle = { fontSize: 12, - fontWeight: "bold", + fontWeight: 'bold', letterSpacing: 1.5, lineHeight: 15, - textAlign: "center", + textAlign: 'center', } const LIST_CONTAINER: ViewStyle = { - alignItems: "center", - flexDirection: "row", + alignItems: 'center', + flexDirection: 'row', padding: 10, } const IMAGE: ImageStyle = { @@ -59,7 +65,11 @@ export const DemoListScreen = observer(function DemoListScreen() { return ( - +
async () => { - console.tron.log("Your Friendly tron log message") - console.tron.logImportant("I am important") + console.tron.log('Your Friendly tron log message') + console.tron.logImportant('I am important') console.tron.display({ - name: "DISPLAY", + name: 'DISPLAY', value: { numbers: 1, - strings: "strings", + strings: 'strings', booleans: true, arrays: [1, 2, 3], objects: { deeper: { deeper: { - yay: "👾", + yay: '👾', }, }, }, @@ -118,20 +118,20 @@ export const DemoScreen = observer(function DemoScreen() { /* dummy function */ }, }, - preview: "More control with display()", + preview: 'More control with display()', important: true, image: { uri: - "https://avatars2.githubusercontent.com/u/3902527?s=200&u=a0d16b13ed719f35d95ca0f4440f5d07c32c349a&v=4", + 'https://avatars2.githubusercontent.com/u/3902527?s=200&u=a0d16b13ed719f35d95ca0f4440f5d07c32c349a&v=4', }, }) // make an API call for the demo // Don't do API like this, use store's API const demo = new Api() demo.setup() - demo.getUser("1") + demo.getUser('1') // Let's do some async storage stuff - await save("Cool Name", "Boaty McBoatface") + await save('Cool Name', 'Boaty McBoatface') }, [], ) @@ -139,7 +139,11 @@ export const DemoScreen = observer(function DemoScreen() { return ( - +
- +