From 42e96a2002aacb7770bfba7dc6adb2040f5ab76a Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 30 Sep 2019 10:03:18 +0200 Subject: [PATCH] Refactor --- RNOpenALPRExample/.prettierrc.js | 4 +++- RNOpenALPRExample/App.js | 38 ++++++++++++++++---------------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/RNOpenALPRExample/.prettierrc.js b/RNOpenALPRExample/.prettierrc.js index 5c4de1a..9ab24ed 100644 --- a/RNOpenALPRExample/.prettierrc.js +++ b/RNOpenALPRExample/.prettierrc.js @@ -1,6 +1,8 @@ module.exports = { - bracketSpacing: false, + bracketSpacing: true, jsxBracketSameLine: true, singleQuote: true, trailingComma: 'all', + semi: false, + tabWidth: 4, }; diff --git a/RNOpenALPRExample/App.js b/RNOpenALPRExample/App.js index 70bae08..8781452 100644 --- a/RNOpenALPRExample/App.js +++ b/RNOpenALPRExample/App.js @@ -1,24 +1,24 @@ -import React from 'react'; -import {StyleSheet} from 'react-native'; -import Camera from 'react-native-openalpr'; +import React from 'react' +import { StyleSheet } from 'react-native' + +import Camera from 'react-native-openalpr' const App = () => { - console.log(Camera); - return ( - <> - - - ); -}; + return ( + <> + + + ) +} const styles = StyleSheet.create({ - camera: { - flex: 1, - }, -}); + camera: { + flex: 1, + }, +}) -export default App; +export default App