A universal module that gets native application information such as its ID, app name, and build version at runtime
Overall
score
98%
Build a feature toggle system for a React Native mobile app that enables or disables certain features based on the iOS build type (e.g., development, simulator, app store release).
Your task is to create a module that:
The system should identify whether the app is running in:
Based on this information, the system should enable debug features only for simulator and development builds, while keeping them disabled for all distribution builds (enterprise, ad-hoc, and app store).
@generates
/**
* Gets the current build type information
* @returns Promise resolving to an object containing:
* - buildType: string describing the build type
* - debugFeaturesEnabled: boolean indicating if debug features should be active
*/
export async function getBuildInfo(): Promise<{
buildType: string;
debugFeaturesEnabled: boolean;
}>;Provides native application information including iOS release type detection.
Install with Tessl CLI
npx tessl i tessl/npm-expo-application