CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-expo-application

A universal module that gets native application information such as its ID, app name, and build version at runtime

Overall
score

98%

Overview
Eval results
Files

task.mdevals/scenario-1/

App Usage Tracker

Build a React Native utility that tracks and analyzes how long users have had an app installed on their device. This utility should help developers understand user retention by providing information about installation duration.

Capabilities

Calculate installation duration

  • Returns the number of days since the app was first installed @test
  • Returns 0 days when the app was installed today @test

Categorize user tenure

  • Categorizes users with less than 7 days as "new" @test
  • Categorizes users with 7-29 days as "regular" @test
  • Categorizes users with 30 or more days as "loyal" @test

Implementation

@generates

API

/**
 * Gets the number of days since the app was first installed
 * @returns Promise resolving to the number of days (rounded down to nearest whole number)
 */
export async function getDaysSinceInstall(): Promise<number>;

/**
 * Categorizes the user based on how long they've had the app installed
 * @returns Promise resolving to "new", "regular", or "loyal"
 */
export async function getUserTenureCategory(): Promise<"new" | "regular" | "loyal">;

Dependencies { .dependencies }

expo-application { .dependency }

Provides access to app installation information.

Install with Tessl CLI

npx tessl i tessl/npm-expo-application

tile.json