Comments (8)
Hey! The event types @markgibaud-vtail mentions does not solve the typescript issue for this module. We need type definitions for the items in js/index.js. Without them typescript does not know what type MParticle is when we import it.
import MParticle from 'react-native-mparticle';
The error without the type definitions
Could not find a declaration file for module 'react-native-mparticle'. '/some/path/node_modules/react-native-mparticle/js/index.js' implicitly has an 'any' type.
from react-native-mparticle.
@joelain Thanks for the heads up. We'll reopen this issue and see when we can get it into our backlog. Tracking internally as 77187.
from react-native-mparticle.
Just starting to implement MParticle, and I'm really looking forward to this, particularly with option chains like so: MParticle.User.UserAttributeType.FirstName
, I've come to expect the intellisense that comes with TS.
from react-native-mparticle.
See https://github.com/mParticle/js-models/tree/master/packages/events 👍
from react-native-mparticle.
Closing this as there is a viable solution. If this is still an issue, please reopen.
from react-native-mparticle.
Please add type support +1
from react-native-mparticle.
+1
from react-native-mparticle.
Tracking internally via https://go.mparticle.com/work/SQDSDKS-4220
from react-native-mparticle.
Related Issues (20)
- Can't build the app after upgrading mParticle-Apple-SDK to 8.13.0 HOT 3
- Unable install in expo HOT 16
- 'mParticle.h' file not found HOT 2
- [iOS] App won't build after upgrading to react-native 0.73 HOT 4
- Environment setup? HOT 1
- Value cannot be cast from Boolean to String HOT 5
- Compilation Error HOT 2
- Feature Request: Raise an event once at attribution is fetched at the native layers. HOT 4
- question: isLoggedIn flag. HOT 1
- Not able to find specification HOT 2
- Plugin uses deprecated part of the mParticle Android SDK
- Could not invoke MParticle.logEvent HOT 3
- After published 2.7.1 old versions have stopped being build HOT 12
- Question: Is autolinking supported? HOT 3
- Documentation needs more clarity around identification HOT 1
- Module uses old part of the mParticle Android SDK HOT 4
- mParticle -> Warning: Braze SDK initialized outside of mParticle kit
- Global Subscription States in Braze via mParticle React Native library
- Simulator not running on M1 MacBook? HOT 2
- Migrate to AndroidX HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-mparticle.