Firebase dynamic links not working well

I have an ejected Expo project which uses the Expo SDK. I am using react-native-firebase and dynamic links in iOS.

The dynamic link is triggered when the app is active. But the app is not getting the initial link using react-native-firebase getInitialLink. But Linking.getInitialURL provides the initial link.

Should something be done to get react-native-firebase dynamic links working with Expo? Thanks.