Skip to content

setSiftConfig required arguments #3

@bell-steven

Description

@bell-steven

The Readme indicates that only the first two arguments, accountId and beaconKey, are required.

When running in my app, I am receiving native code errors indicating that all the parameters are indeed required.

Steps to reproduce:

npm install sift-react-native
cd ios && pod install && cd ..
// App.js
import React from 'react';
import SiftReactNative from 'sift-react-native';

const accountId = SIFT_SCIENCE_ACCOUNT_ID
const beaconKey = SIFT_SCIENCE_BEACON_KEY

const ConfigurationScreen = () => {
  ...
  SiftReactNative.setSiftConfig(
      accountId,
      beaconKey
    );
  ...
  return <View><Text>Hello Word</Text></View>
}

export default ConfigurationScreen;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions