- package.json with React Native/Expo peer dependencies - Main index.ts with module exports for all platform services - Providers and hooks for auth, telemetry, feature flags, kill switch, broadcasts, surveys
56 lines
994 B
TypeScript
56 lines
994 B
TypeScript
/**
|
|
* ByteLyst React Native Platform SDK
|
|
*
|
|
* Provides platform services for React Native/Expo apps:
|
|
* - Authentication
|
|
* - Telemetry
|
|
* - Feature Flags
|
|
* - Kill Switch
|
|
* - Broadcasts & Surveys
|
|
*/
|
|
|
|
export { createRNPlatformSDK } from './core.js';
|
|
|
|
// Re-exports from sub-modules
|
|
export {
|
|
useAuth,
|
|
AuthProvider,
|
|
type AuthState,
|
|
type AuthContextType,
|
|
} from './auth/index.js';
|
|
|
|
export {
|
|
useTelemetry,
|
|
TelemetryProvider,
|
|
type TelemetryEvent,
|
|
type TelemetryConfig,
|
|
} from './telemetry/index.js';
|
|
|
|
export {
|
|
useFeatureFlags,
|
|
FeatureFlagProvider,
|
|
type FeatureFlag,
|
|
} from './feature-flags/index.js';
|
|
|
|
export {
|
|
useKillSwitch,
|
|
KillSwitchProvider,
|
|
type KillSwitchState,
|
|
} from './kill-switch/index.js';
|
|
|
|
export {
|
|
useBroadcasts,
|
|
BroadcastProvider,
|
|
InAppMessageBanner,
|
|
BroadcastModal,
|
|
type InAppMessage,
|
|
} from './broadcasts/index.js';
|
|
|
|
export {
|
|
useSurveys,
|
|
SurveyProvider,
|
|
SurveyModal,
|
|
type ActiveSurvey,
|
|
type Question,
|
|
} from './surveys/index.js';
|