You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Mapeo Mobile, observations can be shared to other apps using the OS's social sharing mechanism. Mapeo Mobile uses react-native-share to implement this feature instead of the built-in Share API, mostly because of the requirement to be able to share files (e.g. photos).
The implementation from Mapeo Mobile should basically be ported over.
Note that this uses a fork of turndown due to a lack of native APIs support for the underlying dom implementation at the time. Context for this is to be able to render rich text markup that some apps (e.g. WhatsApp) support (more context). There's a good chance that we'll still need to rely on the fork, but could be worth quickly trying the original module to see if changes (either in the underlying dom implementation or React Native's JS runtime) have made it feasible to use directly.
The share content should be formatted as following (example below uses English but any translatable strings should be translated appropriately):
Non-exhaustive list of apps that this sharing should work with at a minimum (the library takes care of most of this under the hood but for the sake of testing when implemented):
WhatsApp
Telegram
Signal
Screenshots from Mapeo Mobile
Share button (bottom left of screen)
Pressing share button for observation without media attachments.
Note that title says Sharing text
Pressing share button for observation with media attachments
Note that title says Sharing image
The text was updated successfully, but these errors were encountered:
In Mapeo Mobile, observations can be shared to other apps using the OS's social sharing mechanism. Mapeo Mobile uses
react-native-share
to implement this feature instead of the built-in Share API, mostly because of the requirement to be able to share files (e.g. photos).The implementation from Mapeo Mobile should basically be ported over.
turndown
due to a lack of native APIs support for the underlying dom implementation at the time. Context for this is to be able to render rich text markup that some apps (e.g. WhatsApp) support (more context). There's a good chance that we'll still need to rely on the fork, but could be worth quickly trying the original module to see if changes (either in the underlying dom implementation or React Native's JS runtime) have made it feasible to use directly.The share content should be formatted as following (example below uses English but any translatable strings should be translated appropriately):
Non-exhaustive list of apps that this sharing should work with at a minimum (the library takes care of most of this under the hood but for the sake of testing when implemented):
Screenshots from Mapeo Mobile
Share button (bottom left of screen)
Pressing share button for observation without media attachments.
Sharing text
Pressing share button for observation with media attachments
Sharing image
The text was updated successfully, but these errors were encountered: