react-native-iinstall 0.2.16 → 0.2.17

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.
@@ -108,6 +108,12 @@ If you pass `pushToken`, SDK auto-registers it to the backend using:
108
108
 
109
109
  `POST /api/notifications/push/register`
110
110
 
111
+ If you use React Native Firebase to get the token, install:
112
+
113
+ ```bash
114
+ npm install @react-native-firebase/app @react-native-firebase/messaging
115
+ ```
116
+
111
117
  ```tsx
112
118
  import React from 'react';
113
119
  import messaging from '@react-native-firebase/messaging';
package/README.md CHANGED
@@ -52,24 +52,13 @@ Wrap your main app component with the `<IInstall>` provider.
52
52
  import React from 'react';
53
53
  import { IInstall } from 'react-native-iinstall';
54
54
  import AppNavigation from './src/AppNavigation';
55
- import messaging from '@react-native-firebase/messaging';
56
55
 
57
56
  const App = () => {
58
- const [pushToken, setPushToken] = React.useState<string>();
59
-
60
- React.useEffect(() => {
61
- messaging()
62
- .getToken()
63
- .then(setPushToken)
64
- .catch(() => undefined);
65
- }, []);
66
-
67
57
  return (
68
58
  // Get your API Key from the IInstall Dashboard (Project Settings)
69
59
  <IInstall
70
60
  apiKey="YOUR_PROJECT_API_KEY"
71
61
  apiEndpoint="https://iinstall.app" // Optional, defaults to production
72
- pushToken={pushToken} // Optional: auto-registers token to iinstall backend
73
62
  enabled={__DEV__} // Optional: Only enable in dev/test builds
74
63
  >
75
64
  <AppNavigation />
@@ -80,6 +69,26 @@ const App = () => {
80
69
  export default App;
81
70
  ```
82
71
 
72
+ Optional push token (React Native Firebase):
73
+
74
+ ```bash
75
+ npm install @react-native-firebase/app @react-native-firebase/messaging
76
+ ```
77
+
78
+ ```tsx
79
+ import messaging from '@react-native-firebase/messaging';
80
+
81
+ const pushToken = await messaging().getToken();
82
+
83
+ <IInstall
84
+ apiKey="YOUR_PROJECT_API_KEY"
85
+ apiEndpoint="https://iinstall.app"
86
+ pushToken={pushToken}
87
+ >
88
+ <AppNavigation />
89
+ </IInstall>
90
+ ```
91
+
83
92
  ## 🚀 Perfect For
84
93
 
85
94
  - **Beta Testing Programs** - Collect rich feedback from beta testers
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.16",
2
+ "version": "0.2.17",
3
3
  "highlights": [
4
4
  "Native modules now declared as peer dependencies for reliable app-root autolinking",
5
5
  "SDK now lazy-loads native modules and degrades gracefully instead of hard crashing",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iinstall",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "🎯 IInstall React Native SDK - The ultimate beta testing & QA feedback tool. Shake-to-report with voice recordings, screen recordings, and screenshots. Zero-config setup with TypeScript support. Perfect for beta testing, QA teams, and user feedback collection.",
5
5
  "author": "TesterFlow Team",
6
6
  "license": "MIT",