this is happening because Linking.addEventListener is not working and only Linking.getInitialURL is working
to make Linking.addEventListener work we need to code natively in iOS Appdelegate.m
if you are using FBSDK code this
- (BOOL)application:(UIApplication *)application openURL:(nonnull NSURL *)url options:(nonnull NSDictionary<NSString *,id> *)options {
//[RCTLinkingManager application:application openURL:url sourceApplication:sourceApplication annotation:annotation]
return [RCTLinkingManager application:application openURL:url options:options] || [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url options:options] || [RNGoogleSignin application:application openURL:url options:options];
return YES;
}
componentDidMount()
was already executed when u open your app while it's in a background. – Annapolis