Libraries
Our team consumes several key libraries maintained by other teams or external organizations. These libraries provide reusable code components, utility functions, and common patterns across different applications and services.1. UI Components Library
Author: Front-End Platform TeamRepository: UI Components Library
Description: A React Native library containing reusable UI components such as buttons, modals, form elements, and navigation elements used across the self-checkout app.
Access: Request access via GitHub, or contact the repository admin for permissions.
Integration:
- Install the library:
npm install @bestbuy/ui-components-library - Import components in your app:
import { Button, Modal } from '@bestbuy/ui-components-library';
Documentation: UI Components Documentation
2. State Management Library
Author: Mobile Engineering TeamRepository: State Management Library
Description: A library built to manage complex application state across the mobile app, ensuring consistency and reliability in handling user data, cart information, and transactions.
Access: Request access via GitHub, or contact the repository admin for permissions.
Integration:
- Install the library:
npm install @bestbuy/state-management - Usage example:
import { useAppState } from '@bestbuy/state-management';
const { cart, user } = useAppState();
Documentation: State Management Library Documentation
3. API Client Library
Author: API Services TeamRepository: API Client Library
Description: A JavaScript/TypeScript library that simplifies interactions with the backend services and APIs, providing methods for secure authentication and handling data requests from the Best Buy API.
Access: Request access via GitHub, or contact the repository admin for permissions.
Integration:
- Install the library:
npm install @bestbuy/api-client - Usage example:
import { getProductDetails } from '@bestbuy/api-client';
const productDetails = await getProductDetails(productId);
Documentation: API Client Documentation
4. Analytics Library
Author: Data Analytics TeamRepository: Analytics Library
Description: This library integrates analytics and event tracking into the mobile application, sending data on user interactions, session tracking, and transaction events to analytics platforms.
Access: Request access via GitHub, or contact the repository admin for permissions.
Integration:
- Install the library:
npm install @bestbuy/analytics - Usage example:
import { trackEvent } from '@bestbuy/analytics';
trackEvent('Transaction Completed', { transactionId });
Documentation: Analytics Documentation
Access Information
For access to any of these libraries, request permissions via GitHub or contact the repository admin listed in each section.Support
For support with library integration, usage, or troubleshooting, contact the Support Team or join the Slack channel#libraries-support for assistance.