How to create downloadable file

I have api call where i am getting some data, i want to create text file and download it. Ex: user clicking on the button the api response data should be inserted into a file and download into downloads folder. If i am using RNFechBlob i am getting error but without expoi can do this, but i need this using expo.
Thanks