I have react-native app for mobile and web. I have Dropbox section that I need to connect with backend. On toggle button I need to show Dropbox button and when I click on button show modal to signIn.
<View style={{ paddingHorizontal: 15 }}>
<AccordionComponent label="DropBox" type="toggle" content={<></>} />
<Button
onPress={onDropboxPress}
style={styles.dropboxButton}
textStyle={styles.dropButtonText}
text={t('DropboxNormal')}
iconPath={require('@assets/icons/dropbox.png')}
iconStyle={styles.dropIcon}
loading={savingIDropUser === ILoadingState.LOADING}
/>
</View>
I found this
https://github.com/dropbox/dropbox-sdk-js
but don't know how to use it.