mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
docs(dynamic-links): resolving "Type 'Function' provides no match for the signature '(): void | undefined'.ts(2345)". (#2945)
This commit is contained in:
committed by
Mike Diarmid
parent
9823d840d0
commit
09559bdb6a
@@ -63,7 +63,7 @@ function App() {
|
||||
useEffect(() => {
|
||||
const unsubscribe = firebase.dynamicLinks().onLink(handleDynamicLink);
|
||||
// When the component unmounts, remove the listener
|
||||
return unsubscribe;
|
||||
return () => unsubscribe();
|
||||
}, []);
|
||||
|
||||
return <YourApp />;
|
||||
|
||||
Reference in New Issue
Block a user