Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@hadx/analytics
Advanced tools
This is Hadex's analytics library to track and report React Native app's usage using Firebase's firestore.
Why not use Firebase Analytics?
You can have access to all the data programmatically since it's hosted on your firebase firestore. Hadex Analytics provides functions to read, filter and analyse those data. No need to export to BigQuery which is not free.
Create a new project on firebase console (ex: AppsAnalytics)
Add a Web App to the project
./credentials/firebaseConfig.json
In ./credentials/firebaseConfig.json
{
"apiKey": "...",
"authDomain": "...",
"databaseURL": "...",
"projectId": "...",
"storageBucket": "...",
"messagingSenderId": "...",
"appId": "..."
}
Rules
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth != null;
}
}
}
Enable Anonymous Authentication
Install this package
yarn add @hadx/analytics
On your React Native app initialization:
import Analytics from '@hadx/analytics';
export default class App extends React.Component {
componentDidMount() {
Analytics.initialize({appID: 'myappID'}, () => {
Analytics.logEvent('openApp')
});
}
}
These events below are logged automatically for you
Event ID | When | Data |
---|---|---|
newUser | a new user installs your app | deviceID |
FAQs
Hadex's analytics service to track and report app's usage
The npm package @hadx/analytics receives a total of 0 weekly downloads. As such, @hadx/analytics popularity was classified as not popular.
We found that @hadx/analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.