nativescript
via PatrickJS/awesome-cursorrules
NativeScript development guidance with core APIs, TypeScript, and mobile best practices.
What is nativescript?
Provides best practices for NativeScript mobile app development, including proper use of @nativescript/core APIs, navigation patterns, and project structure. Use this rule when building cross-platform mobile applications with NativeScript.
- Enforce TypeScript for type safety across the project
- Guide use of @nativescript/core features and common web APIs
- Implement proper NativeScript Navigation patterns
- Organize assets, components, services, and utilities in a standard folder structure
- Secure sensitive data with @nativescript/secure-storage
- Integrate biometric authentication via @nativescript/biometrics
Applies to
File patterns this rule matches.
Rule definition (reference)
Source of truth, from the repository.
// NativeScript .cursorrules
// NativeScript best practices
const nativeScriptBestPractices = [ "Utilize @nativescript/core features and APIs where applicable", "Utilize common web APIs where applicable", "Implement proper navigation using NativeScript Navigation", "Use NativeScript's assets folder for images, sounds or videos and use the fonts folder for custom fonts", "Implement proper error handling where possible" ];
// Folder structure
const folderStructure = src/ assets/ components/ services/ utils/;
// Additional instructions
const additionalInstructions = `
- Use TypeScript for type safety
- Use @nativescript/secure-storage for sensitive data
- Use @nativescript/biometrics for anything related to biometrics
- Always use nativescript-fonticon for font icons
- Follow NativeScript best practices for performance `;
Related rules
Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.
Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.
Android development with Jetpack Compose, clean architecture, and Material Design 3.
Angular development with Novo Elements UI library using standalone components.
Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.
Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.