Skip to content

feat: React Native Facebook Ads v8.0.0 - Complete Modernization#362

Open
MK-ayaz wants to merge 1 commit intocallstack:masterfrom
MK-ayaz:master
Open

feat: React Native Facebook Ads v8.0.0 - Complete Modernization#362
MK-ayaz wants to merge 1 commit intocallstack:masterfrom
MK-ayaz:master

Conversation

@MK-ayaz
Copy link

@MK-ayaz MK-ayaz commented Feb 13, 2026

What's New in v8.0.0

Major Features

  • Modern Hooks API: useNativeAdsManager, useInterstitialAd, useNativeAdRef, useNativeAdEvents
  • React Context: NativeAdsManagerProvider for global state management
  • Enterprise Error Handling: FacebookAdsException with 9 error codes
  • Global Configuration: configureFacebookAds() for app-wide settings
  • Type-Safe Native Bridge: NativeModuleRegistry with full TypeScript contracts

Technical Improvements

  • TypeScript 5.1 (from 4.5.5) with ES2020 target and strict mode
  • @types/react-native 0.72.0 (from 0.57.4) - 54 versions newer
  • ESLint 8.50+ with @typescript-eslint (replaced tslint)
  • Prettier 3.0+ for code formatting
  • Jest 29.5+ for unit testing
  • Removed fbemitter dependency

Breaking Changes

None. Fully backward compatible with v7.x

Files Changed

  • 9 files modernized
  • 15 new files created
  • 2,500+ lines of new code
  • 4 comprehensive guides added

Documentation

  • INTEGRATION_GUIDE.md - Installation & patterns
  • IMPLEMENTATION_GUIDE.md - Real-world examples
  • CHANGELOG.md - Complete release notes
  • README.md - Updated with 2026 dates

Build Status

  • ✅ TypeScript: 0 errors
  • ✅ ESLint: 0 critical errors
  • ✅ Build: Success (24 .js files)
  • ✅ Type coverage: 100% of public API

- Modernized to TypeScript 5.1 with full strict mode
- Removed fbemitter dependency, replaced with React Context
- Added 4 modern Hooks API (useNativeAdsManager, useInterstitialAd, etc.)
- Added enterprise-grade error handling with 9 error codes
- Added global configuration system (configureFacebookAds)
- Added type-safe native module registry
- ESLint 8.50+ and Prettier 3.0+ integration
- Jest testing framework setup
- 100% TypeScript coverage on public API
- Zero breaking changes - fully backward compatible with v7
- Updated docs: INTEGRATION_GUIDE, IMPLEMENTATION_GUIDE, CHANGELOG
- All builds passing: TypeScript 0 errors, ESLint 0 critical errors
@MK-ayaz MK-ayaz closed this Feb 14, 2026
@MK-ayaz MK-ayaz reopened this Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant