UNPKG

create-nova-expo-template

Version:

A template for creating a new React Native app using Expo and TypeScript, with a focus on performance and best practices.

8 lines (6 loc) 206 B
const handleOptions = (list: Record<string, string>[] = [], key = "name") => { return list.map((item) => { return { label: item[key], value: item?.id }; }); }; export default handleOptions;