1.2.5 • Published 2 years ago
react-firebase-login v1.2.5
react-firebase-login
A basic login portal that can be used for a react firebase website.
Usage
Ensure Firebase has been initialized before anything else is done.
const {LoginPortal} = import('react-firebase-login');
const withLogin = (component) => {
return () => (
<LoginPortal>
{component}
</LoginPortal>
);
}
// ...
// Route to it
// ...
<Route path={SOME_ROUTE} render={withLogin(<SomeScreen/>)}/>
You may also use only the LoginContent
component and place it within
your own login screen like:
const {LoginContent} = import('react-firebase-login');
Firebase config for test environment:
See FIREBASE_CONFIG_README.md
in src/Config
.
You add the config file FIREBASE_CONFIG.json
at that level.
That config file gets ignored by version control.
For Developer
Remember to npm run build
before npm publish
.
1.2.0
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.1.9
2 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago