Is thus just for commercial reason? Or do you store some "high-end" data or patents that you need to protect?
For Android I have no idea (other then, hell yeah probably).
Binaries for iOS, you can reverse engineer, but who cares? Changing the code to by pass a trial is not that easy (maybe if you rooted your iOS device). I'm guessing thats not many user (in total iOS users) have it rooted. Apple has "in-app purchase" so you can get all (features) that (deactivate trial by paying). My personal experience, dont put 2 apps in the store. I hate it to have to buy different version of a same app (thats personal).
A wiser plan is to not overprice your product. Asking ridiculous prices is what make people try to crack stuff. Once again, for iOS very unlikely. They probably go look for a free version of something similar.
Let me emphasise again I'm point at circumventing a trial lock. If your "code" saves the world, cures cancer, etc. Or you need to protect a patent, thats another ball game. I'm pretty sure you can't really protect yourself, if (big) companies are out to steal your product, good luck protecting it.
Wiser is top make sure you
a) release a product that works (i.e. wel tested) from the get-go and
b) have it reasonable priced.
From a user perspective: The other day I was thinking about buying specific product. When I saw the price, my jaw dropped. I looked into the trial version I found a flag that allowed me to use it without to much fuzz. I would have payed 200-ish USD, but not 800 USD for a tool I used 10x a year. I went looking because of the ridiculous price (since it was all the same home or business use).