Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Chatbot component keeps re rendering any time a modal is closed or open #73

Open
edogbosunny opened this issue Apr 23, 2020 · 15 comments
Open

Comments

@edogbosunny
Copy link

Description

I implemented the Chatbot Component in a Modal and noticed that the chatbot rerenders and starts all steps afresh any time the modal is closed or opened. please i need help to make sure that the contents in the Modal component is not re-rendered.

          animationType="slide"
          transparent={true}
          visible={modalVisible}
        >
          <View style={styles.modalMainView}>
            <Icon
              style={styles.modalCloseBtn}
              onPress={() => {
                this.setModalVisible(!modalVisible);
              }}
              name="close"
              size={
                Platform.OS === "ios" ? hp("5.0%") : hp("5%")
              }
              color={Colors.lightBlue}
            />
            <View style={{ height: hp('85%') }}>
              <ChatBot steps={steps}
                customStyle={{ borderColor: '#fff' }}
                contentStyle={{ backgroundColor: '#fff' }} />
            </View>
          </View>
        </Modal>

Screenshots

Screen-Recording-2020-04-23-at-1

@smilydronavalli
Copy link

Hi

Can guide me how to install the chatbot without errors
It will great help for us

ThanksinAdvance

@edogbosunny
Copy link
Author

Hi

Can guide me how to install the chatbot without errors
It will great help for us

ThanksinAdvance

Hi @smilydronavalli i installed this on react native version 0.61.5.
i would suggest you install this library first then if you have any errors we would debug that together.
hope this helps.

@smilydronavalli
Copy link

smilydronavalli commented Apr 24, 2020

Hi @edogbosunny
I installed on react native version 0.62.2

I got the following error
Simulator Screen Shot - iPhone 11 - 2020-04-24 at 13 02 57
Kindly suggest me how to solve this issue

@edogbosunny
Copy link
Author

@smilydronavalli try installing "@react-native-community/art" then do a pod install. and rebuild your project

@smilydronavalli
Copy link

@edogbosunny I installed but still showing error

kindly advice me

@edogbosunny
Copy link
Author

@smilydronavalli can we have a remote session to further debug this?

@smilydronavalli
Copy link

Yes
But my system doesnot have access because i am using mac system

Can you guide me

@edogbosunny
Copy link
Author

@smilydronavalli
Copy link

its asking host login fro zoom

@edogbosunny
Copy link
Author

@smilydronavalli please try joining now

@smilydronavalli
Copy link

Hi @edogbosunny ,

Its working in react native 0.61.5 version but it shows so many warnings regarding style
how can you solve this one.
Simulator Screen Shot - iPhone 11 - 2020-04-24 at 15 15 51

Thanks a lot

@edogbosunny
Copy link
Author

edogbosunny commented Apr 24, 2020 via email

@smilydronavalli
Copy link

Hi,

One more doubt
sorry for the inconvenience

Text field is not enable for chatting.

Can you suggest me how???

@edogbosunny
Copy link
Author

You would need set the user props to true in the steps. There is an example.for this in the documentation.
Hope.this helps

@cudavasol
Copy link

cudavasol commented Feb 16, 2021

hello @edogbosunny can you show me how you manage to modify the botAvatar image?

thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants