Sharing file from iOS app

Is it possible or me to share a file from one iOS app to someone else using the messaging or email?
I’m trying to figure out how the sharing panel works, and it seems I can only share an image or text.
Am I looking at this wrong?

You can attach it to a email. Jason King’s IOSKit has the declares to send an email. The user must do the sending. You cannot do so automatically. Email address must be setup in the mail app on the ios device.

Well that’s perfect.