-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom content types #155
Custom content types #155
Conversation
Note: This solution is only suitable for very basic content types. For things like remote attachments, a native component will still be necessary for performance.
… custom-content-types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. We should wait to release this till we have the android side implemented. But all the tests except the new one pass for android as well.
…eact-native into custom-content-types
…eact-native into np/custom-content-types-android
… custom-content-types
Android side of custom content types
…eact-native into custom-content-types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just ran the example app and all the tests. LGTM 👍
…registered on the client
🎉 This PR is included in version 1.21.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Introduces the ability to use custom content types on iOS (Kotlin support to follow).
This PR does not replace any of the existing content types that already ship with SDK. Instead it changes
DecodedMessage#content
to be a function rather than a property. The function will either return the same values it does today or the decoded content from a JS content codec.If we dig this overall approach then we can look into replacing the hard coded codecs in a couple places, but I don't know what that would look like for codecs that require a native component (like attachments).
Basic usage can be seen in the tests: