Skip to content

Commit 7e6a97f

Browse files
committed
update doc
1 parent f98ab70 commit 7e6a97f

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,19 @@ const App = () => {
6969
<Text style={styles.buttonText}>Open widget</Text>
7070
</TouchableOpacity>
7171
</View>
72-
<ChatWootWidget
73-
websiteToken={websiteToken}
74-
locale={locale}
75-
baseUrl={baseUrl}
76-
closeModal={() => toggleWidget(false)}
77-
isModalVisible={showWidget}
78-
user={user}
79-
customAttributes={customAttributes}
80-
/>
72+
{
73+
showWidget&&
74+
<ChatWootWidget
75+
websiteToken={websiteToken}
76+
locale={locale}
77+
baseUrl={baseUrl}
78+
closeModal={() => toggleWidget(false)}
79+
isModalVisible={showWidget}
80+
user={user}
81+
customAttributes={customAttributes}
82+
/>
83+
}
84+
8185
</SafeAreaView>
8286
);
8387
};

0 commit comments

Comments
 (0)