In addition to what Atul said, I don't think there is a way to use the animation from XD directly in an application. The animation is a representation of how things will look in the final site or application. The developer of the site or app will have to recreate those animations using code.
There is some workaround that can be used. You need to create video> and then export as GIF. Then developer can use it as gif. Or create that animation in Photoshop, Animate or other program and import into xd