@umituz/react-native-settings 5.4.3 → 5.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-settings",
3
- "version": "5.4.3",
3
+ "version": "5.4.5",
4
4
  "description": "Complete settings hub for React Native apps - consolidated package with settings, localization, about, legal, appearance, feedback, FAQs, rating, and gamification - expo-store-review and expo-device now lazy loaded",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./dist/index.d.ts",
@@ -83,7 +83,8 @@
83
83
  "lint": "eslint src",
84
84
  "lint:fix": "eslint src --fix",
85
85
  "vp": "npm version patch && npm publish && git push",
86
- "build": "tsc --project tsconfig.build.json"
86
+ "build": "tsc --project tsconfig.build.json",
87
+ "setup:skill": "node -e \"const fs = require('fs'); const path = require('path'); const skillDir = path.join(process.env.HOME, '.claude', 'skills', 'react-native-settings'); fs.mkdirSync(skillDir, {recursive: true}); fs.copyFileSync(path.join(__dirname, 'skills/SKILL.md'), path.join(skillDir, 'SKILL.md')); console.log('✅ @umituz/react-native-settings setup skill installed to Claude Code!');\""
87
88
  },
88
89
  "keywords": [
89
90
  "react-native",
@@ -1,48 +0,0 @@
1
- ---
2
- description: Sets up or updates the @umituz/react-native-settings package in a React Native app with its localization, appearance, and generic settings stack.
3
- ---
4
-
5
- # Settings Hub Setup Skill
6
-
7
- When this workflow/skill is invoked, follow these precise steps to set up or update the `@umituz/react-native-settings` package in the target project.
8
-
9
- ## Step 1: Check and Update `package.json`
10
- - Read the target project's `package.json` file.
11
- - Check if `@umituz/react-native-settings` is present in `dependencies`.
12
- - If missing: Install it via `npm install @umituz/react-native-settings`.
13
- - If outdated: Update it to the latest version.
14
-
15
- ## Step 2: Ensure Peer Dependencies
16
- This package requires several core navigation, localization, and Expo dependencies. Check `package.json` and install the missing ones using the appropriate package manager (e.g. `npx expo install` for Expo packages):
17
- - `@react-navigation/native` & `@react-navigation/stack`
18
- - `@tanstack/react-query` & `zustand`
19
- - `@umituz/react-native-design-system`
20
- - `i18next` & `react-i18next`
21
- - `firebase`
22
- - `expo-constants`, `expo-device`, `expo-haptics`, `expo-localization`, `expo-notifications`, `expo-store-review`
23
- - `react-native-safe-area-context`
24
-
25
- // turbo
26
- ## Step 3: Run Pod Install (If bare React Native)
27
- If the project has an `ios/` folder and a `Podfile`, run:
28
- ```bash
29
- cd ios && pod install
30
- ```
31
-
32
- ## Step 4: Setup Settings Stack / Boilerplate
33
- - Locate the main navigation or settings screen file (e.g. `src/navigation/MainTabNavigator` or `app/settings.tsx`).
34
- - Introduce `SettingsStackNavigator` to the navigation flow.
35
- - Example boilerplate to inject:
36
- ```typescript
37
- import { SettingsStackNavigator } from '@umituz/react-native-settings';
38
-
39
- // Basic usage:
40
- <SettingsStackNavigator
41
- appInfo={{ name: 'My App', version: '1.0.0' }}
42
- legalUrls={{ privacy: 'https://...', terms: 'https://...' }}
43
- />
44
- ```
45
- - Make sure `i18next` configurations are correctly mapped if they need to be injected into the root.
46
-
47
- ## Step 5: Summary
48
- State clearly what is updated and initialized. List the files that have been modified for the Settings Hub and which peer dependencies were installed.