react-native-salespanda
v0.4.4
Published
React Native SDK for multi-tenant enterprise applications with product flavors support
Maintainers
Readme
react-native-salespanda
A comprehensive React Native SDK for building multi-tenant enterprise applications with product flavors support. Built for multiple client brands including DIGI PULSE, ABC, Connekt (HDFC), Digiconnect, mEngage (Max Life), NIMF Marketing, smarTMFDPro, and Raksha Connect.
Features
- 🎨 Multiple Product Flavors - Support for 8+ different client brands
- 🧭 Flexible Navigation - Drawer, tabs, or both combined
- 📱 Pre-built Screens - Home, Profile, Notifications, Reports, Premium
- ⚙️ Flexible Configuration - Theme, API, features, and analytics
- 🔌 Easy Integration - Use as standalone app or embed in existing apps
- 📊 Analytics Ready - CleverTap integration support
- 🔔 Notification Support - Push notification configuration per flavor
Quick Start
For DIGI PULSE (salespandadm) Flavor
See QUICKSTART_SALESPANDADM.md for a complete step-by-step guide.
# Install
npm install react-native-salespanda
# Install dependencies
npm install @react-navigation/native @react-navigation/drawer @react-navigation/bottom-tabs \
react-native-gesture-handler react-native-reanimated react-native-safe-area-context react-native-screensInstallation
npm install react-native-salespandaUsage
import SalespandaApp, {
initializeSalespanda,
getFlavorConfig
} from 'react-native-salespanda';
// Full app mode with both drawer and tabs (default)
export default function App() {
const flavorConfig = getFlavorConfig();
initializeSalespanda({
theme: { primaryColor: '#4a148c' },
api: { baseUrl: `https://${flavorConfig.host}` },
});
return (
<SalespandaApp
navigationType="both" // 'both' | 'drawer' | 'tabs'
wrapWithGestureHandler={true}
/>
);
}Navigation Modes
both(default) - Drawer + Bottom Tabs (recommended)drawer- Drawer navigation onlytabs- Bottom tabs only
See NAVIGATION_MODES.md for detailed examples.
Available Flavors
- salespandadm - DIGI PULSE (
com.spdigi.app) - abc - ABC Stellar Partner (
com.stellarsp.app) - hdfc - Connekt (
com.hdfcmf.app) - digiconnect - MO Digiconnect (
com.digiconnectdm.app) - maxlife - mEngage (
com.maxlifedm.app) - nimf - NIMF Marketing (
com.nimfdm.app) - canara - smarTMFDPro (
com.smartmfdpro.app) - rakshaconnect - Raksha Connect (
com.rakshaconnect.app)
See FLAVORS.md for complete flavor details.
Documentation
- 📘 NAVIGATION_MODES.md - Navigation configuration guide
- 📘 QUICKSTART_SALESPANDADM.md - Quick start for DIGI PULSE
- 📗 INTEGRATION_GUIDE.md - Complete integration guide
- 📙 FLAVORS.md - Product flavors documentation
- 📕 SDK_USAGE.md - SDK API reference
- 📖 Example App - Working example implementation
Building
# Debug build for DIGI PULSE
npx react-native run-android --mode=salespandadmDebug --appId=com.spdigi.app
# Release build
cd android && ./gradlew assembleSalespandadmRelease
# Generate Play Store bundle
cd android && ./gradlew bundleSalespandadmReleaseContributing
License
MIT
Made with create-react-native-library
