From ed1cb0d064f625be48bd7dcf6e417040eacc0d61 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Sun, 18 Dec 2022 18:32:44 +1300 Subject: [PATCH] Ran prettier --- .eslintrc.js | 2 +- .prettierrc.js | 3 +- .watchmanconfig | 2 +- App.tsx | 56 +++++++++-------- Item.tsx | 39 ++++++------ __tests__/App-test.tsx | 12 ++-- app.json | 2 +- babel.config.js | 2 +- constants.ts | 2 +- index.js | 8 +-- .../AppIcon.appiconset/Contents.json | 62 +++++++++---------- ios/swiper/Images.xcassets/Contents.json | 6 +- metro.config.js | 2 +- package.json | 1 + 14 files changed, 102 insertions(+), 97 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index dcf0be0..6b1f939 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -13,4 +13,4 @@ module.exports = { }, }, ], -}; +} diff --git a/.prettierrc.js b/.prettierrc.js index 2b54074..ce10619 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -4,4 +4,5 @@ module.exports = { bracketSpacing: false, singleQuote: true, trailingComma: 'all', -}; + semi: false, +} diff --git a/.watchmanconfig b/.watchmanconfig index 9e26dfe..0967ef4 100644 --- a/.watchmanconfig +++ b/.watchmanconfig @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/App.tsx b/App.tsx index 13cdb2d..6daeb5e 100644 --- a/App.tsx +++ b/App.tsx @@ -1,49 +1,51 @@ -import {useState} from 'react'; -import {Button, View} from 'react-native'; -import AppIntroSlider from 'react-native-app-intro-slider'; +import {useState} from 'react' +import {Button, View} from 'react-native' +import AppIntroSlider from 'react-native-app-intro-slider' import DocumentPicker, { DocumentPickerResponse, -} from 'react-native-document-picker'; -import {backgroundColor} from './constants'; -import Item from './Item'; +} from 'react-native-document-picker' +import {backgroundColor} from './constants' +import Item from './Item' export default function App() { - const [files, setFiles] = useState([]); - const [slide, setSlide] = useState(0); + const [files, setFiles] = useState([]) + const [slide, setSlide] = useState(0) const pick = async () => { - const picked = await DocumentPicker.pickMultiple(); - console.log(`Picked ${picked.length} files.`); - setFiles(picked); - }; + const picked = await DocumentPicker.pickMultiple() + console.log(`Picked ${picked.length} files.`) + setFiles(picked) + } const renderItem = ({ item, index, }: { - item: DocumentPickerResponse; - index: number; + item: DocumentPickerResponse + index: number }) => { - return ; - }; - - const slideChange = (index: number) => { - setSlide(index); - }; + return + } return ( - + + - -