react-native-dialogflow icon indicating copy to clipboard operation
react-native-dialogflow copied to clipboard

Lag when loading Dialogflow_V2.setConfiguration()

Open eggybot opened this issue 5 years ago • 2 comments

Hi @spoeck I notice that when I add dialogflow within a tab screen, there is a 4 to 8 second delay before it shows the screen for the chat. If I switch to V1 it load fast but for V2 it seem that it took sometime to actually load a screen when Dialogflow_V2.setConfiguration() is initiating. Have you experience this one?

thanks,

eggybot avatar Nov 06 '18 13:11 eggybot

you can use this https://facebook.github.io/react-native/docs/interactionmanager, to let the navigation animation happens, and then you can initialize dialog flow

sibelius avatar Nov 06 '18 13:11 sibelius

@sibelius tried it but still has issue on Android device. Also if I enable RN debugger it run smooth for android but if if disabled or I rebuild the apk release file the issue still there. For iOS there is no delay on loading the screen just in android device only.

thanks,

eggybot avatar Nov 07 '18 06:11 eggybot