
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@dropthought/react-native-dt-sdk
Advanced tools
This repository contains all the sources of dropthought SDK for react-native
Using npm:
npm install @dropthought/react-native-dt-sdk
or using yarn:
yarn add @dropthought/react-native-dt-sdk
yarn add react-native-aes-crypto react-native-secure-key-store react-native-safe-area-context lottie-react-native@6.7.2 react-native-image-crop-picker react-native-webview react-native-svg @react-native-documents/picker
To initialize Dropthought SDK with your apiKey & preferred storage. You can put the code inside the index.js
import {
SurveyModalContainer,
initialize,
} from '@dropthought/react-native-dt-sdk';
initialize({
apiKey: 'YOUR_API_KEY',
storage: AsyncStorage,
});
// Add this container outer your compnent
<SurveyModalContainer>{/* Your components */}</SurveyModalContainer>;
Note: You can find you API key on the web dashboard. (If you don't have permission, please contact your admin)
Declare
const openSurvey = useOpenSurvey() and use openSurvey whenever you need to open the survey screen.
import { useOpenSurvey } from '@dropthought/react-native-dt-sdk';
// ...
const onButtonPress = () => {
// declare this hook
const openSurvey = useOpenSurvey();
// survey screen will be open by calling below method
openSurvey({
visibilityId: 'YOUR_VISIBILITY_ID',
});
};
Note: You can find and copy your visibility ID here in Enterprise app
import { useOpenSurvey } from '@dropthought/react-native-dt-sdk';
// ...
const onButtonPress = () => {
// declare this hook
const openSurvey = useOpenSurvey();
// declare the metadata you desire
const metadata = { name: 'barney', age: '36' };
// survey screen will be open by calling below method
openSurvey({
visibilityId: 'YOUR_VISIBILITY_ID',
metadata: metadata,
});
};
import { useOpenSurvey } from '@dropthought/react-native-dt-sdk';
// ...
const onButtonPress = () => {
// declare this hook
const openSurvey = useOpenSurvey();
// survey screen will be open by calling below method
openSurvey({
visibilityId: 'YOUR_VISIBILITY_ID',
autoClose: true, // default is false
autoCloseCountdown: 3000, // countdown in milliseconds, defailt is 3000
});
};
autoClose & autoCloseCountdown is temporary available in openSurvey props, will soon move to sdk-control-center.
Dropthought SDK will cache user's feedbacks if there has no network connection. You can call this function and we will check if there's any cached feedbacks and submit them again.
When user finishes a survey under no network or a bad network, the survey feedback is saved offline. Dropthought SDK will try to upload the offline feedbacks(if any) when app start.
Or, you could call
feedbackUploader.upload()
manually to try to upload the saved results once if your app has network status monitor.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
dropthought sdk for react-native app
We found that @dropthought/react-native-dt-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.