How to use usabilla-react-native - 10 common examples

To help you get started, we’ve selected a few usabilla-react-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github usabilla / usabilla-u4a-react-native / UsabillaSampleApp / App.js View on Github external
constructor() {
    super()
    this.state = {text: ''}
    usabilla.initialize("YOUR_APP_ID_HERE")
    usabilla.setDataMasking(usabilla.getDefaultDataMasks(), 'X');
    var customVars = {"test": 1};
    usabilla.setCustomVariables(customVars);
    usabilla.setFormDidLoadSuccessfully((reminder) => console.log("successfull loading form: ", reminder));
    usabilla.setFormDidFailLoading((reminder) => console.log("Error loading form: ", reminder));
    usabilla.setFormDidClose((reminder) => console.log("Form closed: ", reminder));
    usabilla.setCampaignDidClose((reminder) => console.log("Campaign closed: ",JSON.stringify(reminder)))
  }
github usabilla / usabilla-u4a-react-native / UsabillaSampleApp / App.js View on Github external
constructor() {
    super()
    this.state = {text: ''}
    usabilla.initialize("YOUR_APP_ID_HERE")
    usabilla.setDataMasking(usabilla.getDefaultDataMasks(), 'X');
    var customVars = {"test": 1};
    usabilla.setCustomVariables(customVars);
    usabilla.setFormDidLoadSuccessfully((reminder) => console.log("successfull loading form: ", reminder));
    usabilla.setFormDidFailLoading((reminder) => console.log("Error loading form: ", reminder));
    usabilla.setFormDidClose((reminder) => console.log("Form closed: ", reminder));
    usabilla.setCampaignDidClose((reminder) => console.log("Campaign closed: ",JSON.stringify(reminder)))
  }
github usabilla / usabilla-u4a-react-native / UsabillaSampleApp / App.js View on Github external
resetCampaignData() {
      usabilla.resetCampaignData(()=> {
          console.log("Campaign data is successfully reset!")
      })
  }
github usabilla / usabilla-u4a-react-native / UsabillaSampleApp / App.js View on Github external
constructor() {
    super()
    this.state = {text: ''}
    usabilla.initialize("YOUR_APP_ID_HERE")
    usabilla.setDataMasking(usabilla.getDefaultDataMasks(), 'X');
    var customVars = {"test": 1};
    usabilla.setCustomVariables(customVars);
    usabilla.setFormDidLoadSuccessfully((reminder) => console.log("successfull loading form: ", reminder));
    usabilla.setFormDidFailLoading((reminder) => console.log("Error loading form: ", reminder));
    usabilla.setFormDidClose((reminder) => console.log("Form closed: ", reminder));
    usabilla.setCampaignDidClose((reminder) => console.log("Campaign closed: ",JSON.stringify(reminder)))
  }
github usabilla / usabilla-u4a-react-native / UsabillaSampleApp / App.js View on Github external
constructor() {
    super()
    this.state = {text: ''}
    usabilla.initialize("YOUR_APP_ID_HERE")
    usabilla.setDataMasking(usabilla.getDefaultDataMasks(), 'X');
    var customVars = {"test": 1};
    usabilla.setCustomVariables(customVars);
    usabilla.setFormDidLoadSuccessfully((reminder) => console.log("successfull loading form: ", reminder));
    usabilla.setFormDidFailLoading((reminder) => console.log("Error loading form: ", reminder));
    usabilla.setFormDidClose((reminder) => console.log("Form closed: ", reminder));
    usabilla.setCampaignDidClose((reminder) => console.log("Campaign closed: ",JSON.stringify(reminder)))
  }
github usabilla / usabilla-u4a-react-native / UsabillaSampleApp / App.js View on Github external
constructor() {
    super()
    this.state = {text: ''}
    usabilla.initialize("YOUR_APP_ID_HERE")
    usabilla.setDataMasking(usabilla.getDefaultDataMasks(), 'X');
    var customVars = {"test": 1};
    usabilla.setCustomVariables(customVars);
    usabilla.setFormDidLoadSuccessfully((reminder) => console.log("successfull loading form: ", reminder));
    usabilla.setFormDidFailLoading((reminder) => console.log("Error loading form: ", reminder));
    usabilla.setFormDidClose((reminder) => console.log("Form closed: ", reminder));
    usabilla.setCampaignDidClose((reminder) => console.log("Campaign closed: ",JSON.stringify(reminder)))
  }
github usabilla / usabilla-u4a-react-native / UsabillaSampleApp / App.js View on Github external
constructor() {
    super()
    this.state = {text: ''}
    usabilla.initialize("YOUR_APP_ID_HERE")
    usabilla.setDataMasking(usabilla.getDefaultDataMasks(), 'X');
    var customVars = {"test": 1};
    usabilla.setCustomVariables(customVars);
    usabilla.setFormDidLoadSuccessfully((reminder) => console.log("successfull loading form: ", reminder));
    usabilla.setFormDidFailLoading((reminder) => console.log("Error loading form: ", reminder));
    usabilla.setFormDidClose((reminder) => console.log("Form closed: ", reminder));
    usabilla.setCampaignDidClose((reminder) => console.log("Campaign closed: ",JSON.stringify(reminder)))
  }
github usabilla / usabilla-u4a-react-native / UsabillaSampleApp / App.js View on Github external
constructor() {
    super()
    this.state = {text: ''}
    usabilla.initialize("YOUR_APP_ID_HERE")
    usabilla.setDataMasking(usabilla.getDefaultDataMasks(), 'X');
    var customVars = {"test": 1};
    usabilla.setCustomVariables(customVars);
    usabilla.setFormDidLoadSuccessfully((reminder) => console.log("successfull loading form: ", reminder));
    usabilla.setFormDidFailLoading((reminder) => console.log("Error loading form: ", reminder));
    usabilla.setFormDidClose((reminder) => console.log("Form closed: ", reminder));
    usabilla.setCampaignDidClose((reminder) => console.log("Campaign closed: ",JSON.stringify(reminder)))
  }
github usabilla / usabilla-u4a-react-native / UsabillaSampleApp / App.js View on Github external
requestFormWithDefaultScreenshot() {
    usabilla.loadFeedbackFormWithCurrentViewScreenshot("YOUR_FORM_ID_HERE")
  }