whenever i am trying to get real path using react native document picker in ios platform i am getting wrong path.
such as
[Error: No such file 'file:///Users/krishna/Library/Developer/CoreSimulator/Devices/C37B4F69-052A-40FA-925C-984D4A3982BF/data/Containers/Data/Application/C837377B-E405-431B-8524-26B5A307506F/Documents/2E8A272D-A828-480E-B3E4-8BF6270BE0C9/file-sample_100kB.doc']
please give any solution
Related
I've created a react native app and trying to add some ads following admob doc and when I add setContentView(R.layout.activity_main); in MainActivity.java in Android Studio it gives me this error: 'cannot resolve symbol activity_main'.
I don't have a layout folder in res (have re-created the app and still nothing).
Do I need to create layout and add activity_main.xml to it? And in that case, what do I add to the xml file?
No
You don't have to touch the native code of android of react native only for exceptional cases.
Follow an online tutorial to do the work.
How add How add addmob with react native on google
So I'm new to React Native Expo and am trying to build a social app. Trying to test my app on my iPhone, I used my camera to scan the QR code provided by the Metro Bundler and tried to open my app on Expo Go. So I have different screens and a js file for each of the screens, and the bundler returns an error says the source code for the screens doesn't exist. It worked fine on a web browser on my computer. Any idea how to solve this? This might be a stupid question. Thanks a lot.
Here is a screenshot of the error:
error image
True a php API I get the json from my sharepoint and all the data. Also the Image url that is stored there. Now the issue is when I get the image data and use it in React Native Expo on IOS it display's but on Android it doesn't.
Why is this, I already searched on Google but didn't find an answer.
i am using react-native-document-picker for my ios app, i am unable to pick files from local data as it only giving options from iCloud.
Anyone knows how to access local files in ios?
So currently, I'm working on moving my React Native project outside of Expo and using regular React Native.
As I expect, it generates an ios and Android folder. However, there are about 5k+ worth of files and folders being generated here.
I know that React Native allows you to write your hybrid code in JSX which generates native code in your android and ios folder. You can also write custom native code in the android and ios folders.
My question, how do I know what exactly React Native generates in those folders and which of those files won't be clobbered if I make changes to it?