korgiauth-react-native
v1.4.6
Published
Provides an authentication component through KorgiAuth for React Native.
Downloads
132
Maintainers
Readme
korgiauth-react-native
provides an authentication component through korgiauth
Installation
npm install korgiauth-react-nativeUsage
import { KorgiAuth } from 'korgiauth-react-native';
// ...
const [user, setUser] = useState("")
const [session, setSession] = useState("")
const [active, closeProtocol] = useState(false)
const appID = process.env.EXPO_PUBLIC_KORGIAUTH_APP_ID //from auth.korgi.dev
//this can be put anywhere in ur jsx tree
// avoid scroll views
<KorgiAuth
active={active}
closeProtocal={closeProtocol}
userReciver={setUser}
sessionReciver={setSession}
appID={appID}
sessionID={session}
user={user}
/>;Custom Styling
import { KorgiAuth } from 'korgiauth-react-native';
// ...
const [user, setUser] = useState("")
const [session, setSession] = useState("")
const [active, closeProtocol] = useState(false)
const appID = process.env.EXPO_PUBLIC_KORGIAUTH_APP_ID //from auth.korgi.dev
// all of these styles are optional you can have some, none or all
<KorgiAuth
customBackgroundImage={require("./path/to/image.png")}
customBoxColor="custom color here"
customBoxBorderColor="custom color here"
customBoxTitleColor = "custom color here"
customTitleColor = "custom color here"
customTextColor = "custom color here"
customButtonColor = "custom color here"
customButtonTextColor = "custom color here"
customInputBoxColor = "custom color here"
customInputBoxBorderColor = "custom color here"
customInputBoxTextColor = "custom color here"
customFooterTextColor = "custom color here"
active={active}
closeProtocal={closeProtocol}
userReciver={setUser}
sessionReciver={setSession}
appID={appID}
sessionID={session}
user={user}
/>;Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
