Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all 16549 articles
Browse latest View live

iOS - Missing or invalid signature

$
0
0

I know, I know, yet another ITMS error question...To anyone with the answer to this:

ERROR ITMS-90034: "Missing or invalid signature. The bundle 'org.project.com' at bundle path 'path' is not signed using an Apple submission certificate.

I am positive my certs and provisioning profiles are correct. I am creating an ".ipa" (based on a compressed Payload folder) file with an "embedded.mobileprovision" and I am able to verify it using the "codesign" command line.Freaking tired of seeing a whole bunch of devs with the same issue with no apparent solution to it !?

Keychain certs are all Trusted by the way ...

Thanks in advance!


How to get older version of expo client app for ios

$
0
0

please can anyone help me with a link where i can download old expo client IPA file that can work with expo SDK 37(I already have many android users using the build made with SDK 37), the current one in app store(expo go) can only work with SDK 38,39,40...., am so in need of it that i have been searching for it for the past two days and don't know what else to do than to ask this question, thanks.

Showing a custom view when an arrow within an inputbox is pressed.(in react-native)

$
0
0

I am new in react-native and i am trying to develop an app, where a want to find out at first, which type of user is connected (e.g. student, prof, ...). Based on that i can show ihm the possiblity he has to navigate on. I plan to do it exactly like the following image:Navigation help

Before the user can see, which possibilities he has to navigate on. He must give his status e.g. student, prof, ...).

If you dont completly understand, what i mean. You can find the demonstration here: https://www.hochschule-bochum.de/

Thank you in advance for your help.

iOS app crashes while trying to install Codepush update and also update rollback happens

$
0
0

"react-native": "0.51.0","react-native-code-push": "^5.2.1",using appcenter-cli

I code pushed a new version of the app, made it mandatory and the JSbundle is getting downloaded whereas its not getting installed. https://codepush.azurewebsites.net/updateCheck?deploymentKey=XXXX&appVersion=YY&packageHash=XXX&isCompanion=&label=&clientUniqueId=XYXYXY

I am able to see the latest update value in the label. Whereas when the app is trying to install, it just crashes and the new update never gets installed. I see as soon as the app crashes the build rollback also happens.

I checked my iOS profile and certificate they haven't expired. The build doesn't have any crashes too.In code push I am checking for update on app resume. It was working all fine till yesterday.

How to crop a video using react native

$
0
0

are there any library for react native to crop videos.by cropping videos I mean showing some part of the video and rejecting other parts like we crop the images.I am not talking about trimming the video because there is a difference between the word trim and crop

React Native Error: EMFILE: too many open files, watch

$
0
0

Getting the following error and not 100% sure why. Currently getting this issue when I run my app in ios simulator

I've tried to do npm install watchman, But I just saw the latest update on the npm packages and it seems like it's been depreciated.

events.js:292      throw er; // Unhandled 'error' event      ^Error: EMFILE: too many open files, watch    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:127:28)Emitted 'error' event on NodeWatcher instance at:    at NodeWatcher.checkedEmitError     at FSWatcher.emit (events.js:315:20)    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:133:12) {  errno: -24,  syscall: 'watch',  code: 'EMFILE',  filename: null}

Minimun RAM to execute XCode in Mac [closed]

$
0
0

I have started developing with React Native with my old Windows PC but I need a Mac to test IOS. Please, could you tell me if it will be enough if I buy a Mac with 16GB RAM?. Thanks a lot in advance

How to change Google Mapview Polyline Stroke Style Dashed Style Line Using React Native?

$
0
0

In My Scenario, I have Implemented in my application Google MapView using "react-native-maps" npm package. In this package as per my requirement I have to draw a dashed circle polyline, like below mentioned image Green line should be dashed stroke style. How to change it like dashed or dotted stroke style line.

enter image description here

<Polyline            coordinates={[              { latitude: 37.88045, longitude: -122.4324 },              { latitude: 37.78825, longitude: -122.3903 },            ]}            strokeWidth={3}            lineDashPattern={[170, 170]}          /> 

How to set force device orientation based on device type in React Native?

Library not found for -lFirebaseCore

$
0
0

This might be a duplicate but the other threads solutions have not worked.

I have taken over a react-native app and am able to build the app for android on windows but the iOS version has this issue of firebasecore not found.

The reason firebase is now appearing twice is because i followed a guide how to deintegrate pods and reinstall and it duped them.

enter image description here

When I click the firebasecore file i can check the path its looking inenter image description here

It doesnt exist in there.

I have tried to deintegrate the pods and reinstall, update them too.Open the project using the workspace file.Delete and clone the repo again to start fresh.

Most of the other solutions too, yet nothing works.

If any other information is needed I can try to provide it!Thank you for reading!

React Native iOS simulator "Connect to Metro to Develop Javascript"

$
0
0

I'm running a react native app and constantly running into the issue of the app not connecting to the code to do automatic updates.

Things I've tried:

  • Reloading main.jsbundle via the following command: npx react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios/assets
  • Completely removing node and react native from my computer
  • Restarting my computer
  • Running on a physical device and running on the simulator
  • Cleaning derived data in Xcode

This is the screen on starting up, which offers the advice, "Connect to Metro to develop JavaScript."

Connect to Metro to develop JavaScript.

From the metro bundler that automatically starts up, I get this message when I type 'r' to reload that says, "React Native: No apps connected."

"No apps connected"

I'm using 0.61 and always have been.

What else should I try?

EDIT

I was able to get it working by restarting my computer (again).

Every once in a while, a restart does the trick, yet most of the time it doesn't work. There still has to be a more reliable way of fixing this.

Warning : Failed child context type: Invalid child context 'virtualizedCell.cellKey' of type 'number' supplied to 'CellRenderer', expected 'string'

$
0
0

I updgraded from react 16.2 -> 16.3-alpha-1 and react-native 0.52->0.54 and I get the warning above in the simulator.

Is there a way to get the link from which an app was installed?

$
0
0

I am new to app development and I cannot figure a way to get the install url from which the app was downloaded/installed (ex: the ad url with the utm parameters) and read it in the app.For example if I open an add and the downloads the app from that ad URL, can I read that URL inside the app when he opens the app? I found the getInstallReferer method but I am not sure is the one I need to use and is only valid for Android. I am using React Native

React Native RefreshControl in iOS shows a white line when pulling down

$
0
0

in iOS, a white line will appear when pulling up the <ScrollView> with refreshControl, anyone knows the reasons?

<ScrollView   removeClippedSubviews={true}   showsVerticalScrollIndicator={false}   refreshControl={<RefreshControl         refreshing={props.listViewState.pullToRefresh}         onRefresh={handleOnRefresh}       />   }   contentContainerStyle={{backgroundColor: 'white'}}><View> ... </View><View> ... </View></ScrollView>

white line appears

Run react native on docker?

$
0
0

I am trying to run react-native on docker. I am new for docker, I have searched for react-native docker image but it only shows react-native-android image. How can I run react-native project on docker and run on iOS simulator.

Please write steps so that I can start react-native project on docker.


How to use ATTrackingManager in Expo

$
0
0

According to recent apple update, ALL apps published to AppStore since 26.4.2021, are required to use App Tracking Transparency framework, if they are requiring user name, email, phone or any user generated content.

Our app requires user name, email and phone number to register user into the app in order to use it. We are not using Segment, AdMob or FacebookAds in our app, but since these libraries can be used in expo managed, we are obliged to check the boxes which custom user content we use, when deploying the app to the AppStore. (https://docs.expo.io/distribution/app-stores/#ios-specific-guidelines)

According to Apple Tracking Transparency I have set the infoPlist key (NSUserTrackingUsageDescription)in app.json, but can't figure out how to show the alert dialog, since ATTrackingManager class, which prompts the user permission is not present in expo and haven't found this type of permission in expo-permissions either. Any clue on how to approach this issue? Thanks a bunch.

React Native where to find APPID

$
0
0

I am trying to make my React-Native app redirect to the store so users can update the app faster instead of searching for it.I found a package which helps me with getting the store links.For the android it asks for the packageName which I got. For the IOS however it asks for appID and I don't know where to find it.

Any ideas on how I could locate this ID? Google isn't very much of help because so much SEO on apple's side I get iCloud results.

How to setup debugging in Visual Studio Code for React Native?

$
0
0

I searched but I can't find any external sources except for Visual Studio Code docs, and just following those docs don't allow to debug React Native apps both in iOS or Android.

I keep getting the error message (this one for Android, for iOS is similar:

[vscode-react-native] [Warning] Couldn't import script athttp://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false. Debugging won't work: Try reloading the JS from inside the app, or Reconnect the VS Code debugger: path must be a string

My launch.json file as:

{"version": "0.2.0","configurations": [        {"name": "Debug Android","program": "${workspaceRoot}/.vscode/launchReactNative.js","type": "reactnative","request": "launch","platform": "android","internalDebuggerPort": 9090,"sourceMaps": true,"outDir": "${workspaceRoot}/.vscode/.react"        },        {"name": "Debug iOS","program": "${workspaceRoot}/.vscode/launchReactNative.js","type": "reactnative","request": "launch","platform": "ios","target": "iPhone 6s","internalDebuggerPort": 9090,"sourceMaps": true,"outDir": "${workspaceRoot}/.vscode/.react"        },        {"name": "Attach to packager","program": "${workspaceRoot}/.vscode/launchReactNative.js","type": "reactnative","request": "attach","internalDebuggerPort": 9090,"sourceMaps": true,"outDir": "${workspaceRoot}/.vscode/.react"        },        {"name": "Debug in Exponent","program": "${workspaceRoot}/.vscode/launchReactNative.js","type": "reactnative","request": "launch","platform": "exponent","internalDebuggerPort": 9090,"sourceMaps": true,"outDir": "${workspaceRoot}/.vscode/.react"        }    ]}

I'm trying to debug both in the iOS simulator or in an Android device but the process never attaches to the external JS debugger.

RN fetch blob download docx or pdf from URL in IOS

$
0
0

What is done:

Implemented in Android and its getting downloaded in specific DCIM directory in android.In ios using DocumentDir to download the pdf or docx file. Using "rn-fetch-blob": "^0.12.0";

Error:

In IOS it says the message in console :

The file saved to /var/mobile/Containers/Data/Application/E6FDC2DD-7FCA-44DC-85C4-A275078F8825/Documents/wow13.pdf

The code to download is something like this :

downloadFileOnSuccess = async () => {    let dirs =      Platform.OS == 'ios'        ? RNFetchBlob.fs.dirs.DocumentDir        : RNFetchBlob.fs.dirs.DCIMDir;    console.log(dirs, 'document path');    RNFetchBlob.config({      // response data will be saved to this path if it has access right.      fileCache: true,      path: dirs + `/wow13.pdf`,    })      .fetch('GET','https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf',        {          //some headers ..        },      )      .then(res => {        // the path should be dirs.DocumentDir +'path-to-file.anything'        console.log('The file saved to ', res.path());      });  };

But i cannot get where the file is downloaded in my iphone 7 real device. Is there any permission i'm missing in IOS? Havent added any permission for IOS.

React Native app works fine on simulator and physical device but apple rejects because of blank white screen

$
0
0

This is my first time deploying a react native app to the app store. When I run it on physical iPhone X it works fine and also works great on both iPhone and iPad simulators.

When I submitted the app to the app store it got rejected because:

Specifically, your app launched to a blank white screen and we were unable to access your apps features and functionality.
Review device details:

  • Device type: iPad
  • OS version: iOS 14.4

I followed the steps mentioned here https://reactnative.dev/docs/next/publishing-to-app-store my app is small so I haven't done the Pro Tips given on the page but other than that all three steps.

It is running successfully on my physical iPhone X device and though I won't be able to run it on a simulator as Schema Build Configuration is changed to Release unless I change it back.

So, what to do now? As I've no idea how to generate the same thing which Apple is seeing on my computer as it works fine.

Don't know if it's related but The screenshot they attached has the Navigation bar with the title showing successfully but the content of scroll view is not showing.

Viewing all 16549 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>