braze-react-native-sdk icon indicating copy to clipboard operation
braze-react-native-sdk copied to clipboard

[Bug]: malformed export/typing

Open suga0828 opened this issue 5 months ago • 1 comments

Which Platforms?

Both

Which React Native Version?

0.74.1

Which @braze/react-native-sdk SDK version?

12.1.0

Repro Rate

100%

Steps To Reproduce

Example:

  1. Install @braze/react-native-sdk
  2. import * as Braze from "@braze/react-native-sdk" (as in documentation).
  3. Braze.changeUser("id")
  4. Run the app.

Expected Behavior

Typing should works.work

Actual Incorrect Behavior

The real error is that export and typing defined inside the lib don't match (exporting default in index.js but individual typing in index.d.ts) image

Verbose Logs

No response

Additional Information

No response

suga0828 avatar Aug 29 '24 22:08 suga0828