Skip to content

Missing helper exports (isSuccessResponse, isErrorWithCode, etc.) from public API #1462

@RolandExSauce

Description

@RolandExSauce

I have searched open and closed issues for this issue.

  • I have searched open and closed issues.

Minimal reproducible example

npm i @react-native-google-signin/google-signin@latest, then: import { GoogleSignin, isSuccessResponse, // ❌ TypeScript error here } from '@react-native-google-signin/google-signin';

What platform(s) does this occur on?

iOS, Android

Steps to reproduce

The new helper functions defined in src/functions.ts (e.g. isErrorWithCode, isCancelledResponse, etc.) are re-exported in the package’s index.ts via: ```ts export * from './functions';

However, when importing from the published package:
import { isSuccessResponse } from '@react-native-google-signin/google-signin';

TypeScript reports:
Module '"@react-native-google-signin/google-signin"' has no exported member 'isSuccessResponse'

Your computer environment

C:\digital-exauce\svbk-client> npx react-native info 
info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.26200
  CPU: "(16) x64 AMD Ryzen 7 5700U with Radeon Graphics         "
  Memory: 2.67 GB / 14.82 GB
Binaries:
  Node:
    version: 22.18.0
    path: C:\nvm4w\nodejs\node.EXE
  Yarn:
    version: 1.22.22
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 10.9.3
    path: C:\nvm4w\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-243.25659.59.2432.13423653
  Visual Studio:
    - 17.14.36414.22 (Visual Studio Community 2022)
Languages:
  Java:
    version: 21.0.7
    path: C:\Program Files\Java\jdk-21\bin\javac.EXE
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 18.0.0
    wanted: ^18.0.0
  react:
    installed: 19.1.0
    wanted: 19.1.0
  react-native:
    installed: 0.81.4
    wanted: 0.81.4
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

info React Native v0.82.0 is now available (your project is running on v0.81.4).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.82.0
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.81.4&to=0.82.0
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions