diff --git a/.gitignore b/.gitignore index e64b91c..a9d7e67 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,9 @@ # VSCode .vscode/ + +# But don't ignore the settings.json file +!.vscode/settings.json jsconfig.json # Xcode diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7a81aa9 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "always" + }, + "eslint.format.enable": true, + "lldb.library": "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB", + "lldb.launch.expressions": "native" +} diff --git a/examples/with-firebase/App.tsx b/examples/with-firebase/App.tsx index 4b8f7bf..9a8e72d 100644 --- a/examples/with-firebase/App.tsx +++ b/examples/with-firebase/App.tsx @@ -2,7 +2,7 @@ import auth, { type FirebaseAuthTypes } from "@react-native-firebase/auth"; import { useEffect, useState } from "react"; import { Alert, Button, StyleSheet, Text, View } from "react-native"; -import { AppleAuthLoginButton } from "./components/AppleAuthLogin"; +import { Login } from "./components/Login"; export default function App() { const [session, setSession] = useState(null); @@ -37,7 +37,7 @@ export default function App() { - Basic Example + Firebase Auth Example - Alert.alert("Authentication Error", error.message) + Alert.alert("Authentication Error", error.message), ) } /> ) : ( - + )} diff --git a/examples/with-firebase/ShareExtension.tsx b/examples/with-firebase/ShareExtension.tsx index 4eece33..ee854b9 100644 --- a/examples/with-firebase/ShareExtension.tsx +++ b/examples/with-firebase/ShareExtension.tsx @@ -3,7 +3,7 @@ import { type InitialProps, close } from "expo-share-extension"; import { useEffect, useState } from "react"; import { Alert, Button, Text, View, StyleSheet } from "react-native"; -import { AppleAuthLoginButton } from "./components/AppleAuthLogin"; +import { Login } from "./components/Login"; export default function ShareExtension({ url, text }: InitialProps) { const [session, setSession] = useState(null); @@ -35,35 +35,42 @@ export default function ShareExtension({ url, text }: InitialProps) { return ( - - Firebase Example - - {url && ( + - URL: {url} + Firebase Example - )} - {text && ( - - Text: {text} - - )} -