Skip to content

Commit 710db22

Browse files
Simplified samples
1 parent b49542c commit 710db22

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,12 @@ class SignInScreen extends React.Component {
111111
firebase.auth.FacebookAuthProvider.PROVIDER_ID
112112
],
113113
// Avoid redirects after sign-in.
114-
callbacks: {
115-
signInSuccess: () => false
116-
}
114+
callbacks: {signInSuccess: () => false}
117115
};
118116

119117
// Listen to the Firebase Auth state and set the local state.
120118
componentWillMount() {
121-
firebase.auth().onAuthStateChanged((user) => {
122-
this.setState({signedIn: !!user});
123-
});
119+
firebase.auth().onAuthStateChanged((user) => this.setState({signedIn: !!user}));
124120
}
125121

126122
render() {

0 commit comments

Comments
 (0)