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

main.jsbundle is not getting updated

$
0
0

I was getting cannot find main.jsbundle error.

so i manually created bundle usingreact-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios/'

now again i was getting same error, so i manually added the main.jsbundle file via Add files to project option and now my build was successful but i am missing back button icon. also the main.jsbundle is not getting modified when is creating archive.

Someone please help me solve this issue.


React-Native-Share-Menu | Error: couldn't find provider on M1 Macbooks

$
0
0

Whenever I build this app on a M1 architecture MacBook, I get the following error:

Error: couldn't find provider

But on intel MacBooks, it works fine.

The code at index.share.js is as follows:

const Share = () => {  useEffect(() => {    ShareMenuReactView.data().then(({mimeType, data}) => {        ShareMenuReactView.continueInApp({data, mimeType});    });  }, []);  return <View />;};AppRegistry.registerComponent('ShareMenuModuleComponent', () => Share);

PS: Rosetta is installed just fine and I tried using RosettaTerminal to run the app too. Nothing changed.

How to disable screen rotation (react-native)?

$
0
0

Is any chance to disable screen rotation (allow only vertical)? I would like to support only portrait view. And need it to work on android and ios.

Getting symbol(s) not found for architecture x86_64 in xcode 12.5

$
0
0

Undefined symbols for architecture x86_64:"OBJC_CLASS$_RCTSurfaceRootView", referenced from:objc-class-ref in libReact.a(RCTUIManager.o)ld: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can't archive with Xcode (error - PhaseScriptExecution failed with a non zero exit code), but the build is successful

$
0
0

Error in detail, the black area is the name of the project and its sub-directoryError from Xcode I am sorry for the black marks in the image.

I have seen multiple posts suggesting an answer to this problem, Lock unlocks keychain (tried it), pod Update (tried it), clear build(tried it), signing, skip install in build settings(tried it) - None of them actually worked.

I built my iOS app in react native with Expo, after which I did expo eject to create the iOS folder for Xcode build and archiving, the build is successful every time and it even runs on the simulator and in my device(iPhone 7) but it always failed to archive by throwing this error - Uncategorised - Command PhaseScriptExecution failed with a non zero exit code..

Any help to point me in which direction should I go or what can be the possible mistake that I am doing will be of great help. Do let me know if, I should provide any more detail about this. Thank you!

Xcode Version - 11.0Mac Version - 10.15 CatalinaiPhone OS - 13.1.3

Few links I tried from -

  1. "${PODS_ROOT}/SwiftLint/swiftlint" causes "Command PhaseScriptExecution failed with a nonzero exit code" with Xcode 10
  2. https://github.com/apollographql/apollo-ios/issues/395
  3. https://www.reddit.com/r/iOSProgramming/comments/al9box/getting_an_error_command_phasescriptexecution/

Building ReactNative 0.59.10 on XCode 12.5 ignoring Pod

$
0
0

I am trying to compile and build the ReactNative project for IOS. I am now using XCode version 12.5 which is the latest at the moment. My ReactNative version is 0.59.10. Before I was compiling and building my project on XCode version 11.x and it was working fine. Then I installed the latest XCode version, 12.5. Then I deleted the node_modules folder and run the "npm install" again. When I opened the IOS project in the XCode and tried to build it, it is giving me the following error.

node_modules/react-native/React/../third-party/folly-2018.10.22.00/folly/dynamic.h:63:10: fatal error: 'boost/operators.hpp' file not found#include <boost/operators.hpp>         ^~~~~~~~~~~~~~~~~~~~~

When I built the project in the older version of XCode, it works fine. I looked up the solution online and it seems that that is because maybe the project is not using Podfile or Pods. In ReactNative version 0.59.10, it is not using Podfile or Pods to manage the dependencies. How can I build the project? Is upgrading the ReactNative only option? Is there any other solution?

React Native iOS: Lock initial orientation to landscape natively in iOS only on cold start (prior to javascript execution)

$
0
0

I need to lock the screen in landscape mode on cold start only for all devices in iOS while still on splash screen. I'm using this great library react-native-orientation-locker and it works great when js is loaded, but it connects with iOS through UIInterfaceOrientationMask, which overrides default settings from Xcode.

So when APP is loading js, it respects an actual device orientation and if user holds it in PORTRAIT, then my dynamic UI with useWindowDimensions/Dimensions are affected, because the very first screen requires LANDSCAPE orientation.

In Android it is very simple to achieve with android:screenOrientation="landscape"

There is a workaround to listen orientation change in js and rerender UI with styles to be placed inside functional component, but it will always cause to render UI twice and requires extra useEffect in almost every UI component.

I'm looking for native solution that can be placed inside AppDelegate.m and pass control over to js library only after js is loaded, so keep initial orientation to be always LANDSCAPE.

- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{  // need some logic here to detect cold start and pass first  // return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;  // then let the library to control orientation from js  return [Orientation getOrientation];}

white spaces at the botton of the screen on ios 11

$
0
0

I am working on a react native app on the expo and I am opening the app on my ios 11, there is a white space at the bottom of the screen like this:

enter image description here

this is when I am logged in as the user, if I start the app and I still have to log in this problem doesn't appear at all.

enter image description here

my code is the same, and I Only have this problem on ios 11 and 12, how can I fix this issue?


using safearealayoutguide or SafeAreaView on BottomTabNavigator to remove white space

$
0
0

I am working on an app and I am using createBottomTabNavigator to create my menu. this is what it looks like on ios 11 and more:

enter image description here

I am trying to remove white spaces, I made another post which I have removed now and someone suggested to use safearealayoutguide, which I dont where to use.

this is my createBottomTabNavigator:

const Tab = createBottomTabNavigator();const BottomTabs = () => (<Tab.Navigator    initialRouteName="Home"    tabBarOptions={{      style: {        borderTopWidth: 0,      },      activeBackgroundColor: "#01ba73",      inactiveBackgroundColor: "#003923",      showLabel: false,    }}><Tab.Screen      name="Home"      ..    /><Tab.Screen      name="Search"      ..    /><Tab.Screen      name="Scanner"      component={ScannerScreen}      ..    /><Tab.Screen      name="Chat"      ...    /><Tab.Screen      name="Profile"      ....    /></Tab.Navigator>);

in my home page if I use SafeAreaView and put everything brtween that doesnt fix the issue, I have seen on this site that I have to use insets I have tried that already but it doenst work.

I am working on expo and I really want to fix this, spend a lot of time on this and still having the same issue. would apperefciate some help!

How to listen App launch and close in React Native?

$
0
0

I need to track some logs event(only once) when App launch and close.

First I do this in Home screen componentDiMount(), but it will be instantiated several times in some case, causing repetitive launch event log.

=============== Edit =================

AppState can only listen background and active event.

When closing app on Android (press back key or close in recents app menu), it actually back to background. It takes the app back to active from background when reopen the app. Which is the same as toggle app between background and active(not close)

So I can't determine whether it is first launch or toggling app status using AppState

Why am I getting an iOS build error in EXPO?

$
0
0

I try to build applications using expo build: ios, I enter the apple id data, but in response I get an error:Authentication with Apple Developer Portal failed!502 Bad Gateway

snapshot

expo diagnosticsroot@66970:/home/dev/app/learnfast# expo diagnosticsExpo CLI 3.18.2 environment info:System:OS: Linux 4.9 Debian GNU/Linux 9 (stretch) 9 (stretch)Shell: 4.4.12 - /bin/bashBinaries:Node: 13.13.0 - /usr/local/bin/nodeYarn: 1.21.1 - /usr/local/bin/yarnnpm: 6.14.4 - /usr/local/bin/npmnpmPackages:expo: ~37.0.3 => 37.0.7react: ~16.9.0 => 16.9.0react-native: https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz => 0.61.4npmGlobalPackages:expo-cli: 3.18.2

expo build:ios Authentication with Apple Developer Portal failed when use expo CLI

$
0
0

I have developed a mobile application using Expo react native. I exported .apk and.aab easily. Now, I am unable to export the .ipa file through Expo CLI and getting error "Authentication with Apple Developer Portal failed".Here is the error I'm getting:

√ Will you provide your own Apple Distribution Certificate? » Let Expo handle the processPlease enter your Apple Developer Program account credentials. These credentials are needed to manage certificates, keys and provisioning profiles in your Apple Developer account.The password is only used to authenticate with Apple and never stored on Expo serversLearn more: https://xxxxx? Apple ID: xxxxx@xxxxx.xxx? Password (for xxxxx@xxxxx.xxx): [hidden]Saving Apple ID password to the local Keychain. Learn more https://docs.expo.io/distribution/security#keychainAuthenticating to Apple Developer Portal...Authentication with Apple Developer Portal failed!Failed to set up Distribution CertificateFailed to prepare all credentials.The next time you build, we will automatically use the following configuration:No credentials configured for app @xxxx/xxxx with bundle identifier com.xxxx.xxxxspawn bash ENOENTError: spawn bash ENOENTat notFoundError (C:\Users\moha1\AppData\Roaming\npm\node_modules\expo-cli\node_modules\cross-spawn\lib\enoent.js:6:26)at verifyENOENT (C:\Users\moha1\AppData\Roaming\npm\node_modules\expo-cli\node_modules\cross-spawn\lib\enoent.js:40:16)at ChildProcess.cp.emit (C:\Users\moha1\AppData\Roaming\npm\node_modules\expo-cli\node_modules\cross-spawn\lib\enoent.js:27:25)at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)***

Do you know how to solve it ?

Best Regards

update react native from 0.59 to 0.64.2 ---- - No such file or directory @ rb_sysopen

$
0
0

I am trying to update the react native application from 0.59 to 0.64, it is in 0.59, it permits to do pod install.

The result when i execute the pod install with the 0.59 version

local@test xcode % pod deintegrateDeintegrating test.xcodeprojDeleted 1 'Copy Pods Resources' build phases.Deleted 1 'Check Pods Manifest.lock' build phases.Deleted 1 'Embed Pods Frameworks' build phases.

  • Pods_test.frameworkDeleted 1 'Check Pods Manifest.lock' build phases.Deleted 1 'Embed Pods Frameworks' build phases.
  • Pods_AppTests.framework
  • Pods-AppTests.debug.xcconfig
  • Pods-AppTests.debug integrado.xcconfig
  • Pods-AppTests.debug homolog.xcconfig
  • Pods-AppTests.debug prod.xcconfig
  • Pods-AppTests.release.xcconfigDeleting Pod file references from project
  • Pods-App.debug.xcconfig
  • Pods-App.debug integrado.xcconfig
  • Pods-App.debug test.xcconfig
  • Pods-App.debug prod.xcconfig
  • Pods-App.release.xcconfigRemoving Pods directory.

Project has been deintegrated. No traces of CocoaPods left in project.Note: The workspace referencing the Pods project still remains.local@test xcode %

Pod install

local@test ios % pod installAuto-linking React Native modules for target test_app: BVLinearGradient, RNDeviceInfo, RNFS, RNGestureHandler, RNPermissions, RNReanimated, RNScreens, react-native-adjust, react-native-dynatrace, react-native-safe-area-context, and react-native-webviewAnalyzing dependenciesDownloading dependenciesGenerating Pods project

Integrating client projectPod installation complete! There are 60 dependencies from the Podfile and 52 total pods installed.

[!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via pod repo remove master. To suppress this warning please add warn_for_unused_master_specs_repo => false to your Podfile.

Now The 0.64 version generates the next

Pod install

local@test xcode % pod installAnalyzing dependenciesFetching podspec for Folly from ./Libraries/react-native/third-party-podspecs/Folly.podspec

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.10.1        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]    RubyGems : 3.0.3        Host : Mac OS X 10.15.7 (19H15)       Xcode : 12.2 (12B45b)         Git : git version 2.24.3 (Apple Git-128)Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/libRepositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ 3d73ef307c2c254ec6e2548eacc35d461958bfa0               test.local-framework-pod-specs - git - http://test.local/framework/pod-specs.git @ 56f9f70f6160741426743b240f58847c105d6c78               trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.4cocoapods-plugins     : 1.0.0cocoapods-search      : 1.0.0cocoapods-stats       : 1.1.0cocoapods-trunk       : 1.5.0cocoapods-try         : 1.2.0

Error

Errno::ENOENT - No such file or directory @ rb_sysopen -/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open-uri.rb:37:in `initialize'/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open-uri.rb:37:in `open'/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open-uri.rb:37:in `open'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/external_sources/podspec_source.rb:19:in `block in fetch'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:86:in `titled_section'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/external_sources/podspec_source.rb:11:in `fetch'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:989:in `fetch_external_source'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:968:in `block (2 levels) in fetch_external_sources'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:967:in `each'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:967:in `block in fetch_external_sources'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:966:in `fetch_external_sources'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:117:in `analyze'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod:23:in `load'/usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+%40+rb_sysopen+-

If none exists, create a ticket, with the template displayed above, on:https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...Found no similar issues. To create a new issue, please visit:https://github.com/cocoapods/cocoapods/issues/new

The podfile

# Uncomment the next line to define a global platform for your project# platform :ios, '9.0'target 'Test' do  # Comment the next line if you don't want to use dynamic frameworks  use_frameworks!  # Pods for Test  pod 'CardIO' #5.4.1 version  # dependences base react  pod 'React', :path => './Libraries/react-native', :subspecs => ['Core','CxxBridge', # Include this for RN >= 0.47'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43'RCTText','RCTImage','RCTNetwork','RCTWebSocket','RCTLinkingIOS','RCTAnimation',    # needed for debugging  # Add any other subspecs you want to use in your project  ]  pod 'yoga', :path => './Libraries/react-native/ReactCommon/yoga'  pod 'DoubleConversion', :podspec => './Libraries/react-native/third-party-podspecs/DoubleConversion.podspec'  pod 'glog', :podspec => './Libraries/react-native/third-party-podspecs/glog.podspec'  pod 'Folly', :podspec => './Libraries/react-native/third-party-podspecs/Folly.podspec'  # dependences react  pod 'RNGestureHandler', :path => './Libraries/react-native-gesture-handler'  pod 'BVLinearGradient', :path => './Libraries/react-native-linear-gradient'  pod 'RNDeviceInfo', :path => './Libraries/react-native-device-info'  pod 'RNFS', :path => './Libraries/react-native-fs'  pod 'RNPermissions', :path => './Libraries/react-native-permissions'  pod 'Permission-Camera', :path => './Libraries/react-native-permissions/ios/Camera.podspec'  pod 'react-native-webview', :path => './Libraries/react-native-webview'  # Adjust  pod 'react-native-adjust', :path => './Libraries/react-native-adjust'  target 'TestTests' do    inherit! :search_paths    # Pods for testing  end  target 'TestUITests' do    # Pods for testing  endend

Project

White screen after migration to Expo

$
0
0

I am currently facing an issue, when running expo start the app shows a white blank screen once the loading is completed on both the ios simulator and device (Android has not been tested yet).

I originally started this project on the react-native CLI and recently migrated to Expo. This issue has been apparent since the migration.

I have followed a number of instructions online to try and solve this however i've had no luck. There are no errors in the console and no issues when running the JS Debug in VSC

Please find my package.json file below

{"name": "MyApp","version": "0.0.1","private": true,"scripts": {"android": "expo start --android","ios": "expo start --ios","start": "expo start","test": "jest","eject": "expo eject"  },"dependencies": {"@eva-design/eva": "^2.0.0","@expo/webpack-config": "^0.12.38","@react-native-community/async-storage": "^1.10.0","@react-native-community/geolocation": "^2.0.2","@react-native-community/masked-view": "^0.1.10","@react-native-firebase/app": "^6.7.1","@react-native-firebase/auth": "^6.7.1","@react-native-firebase/firestore": "^6.7.1","@react-native-firebase/storage": "^6.7.1","@react-navigation/bottom-tabs": "^5.3.4","@react-navigation/native": "^5.3.2","@react-navigation/stack": "^5.3.6","@ui-kitten/components": "^5.0.0","@ui-kitten/eva-icons": "^5.0.0","babel-preset-expo": "^8.3.0","buffer": "^5.6.0","expo": "^39.0.3","expo-splash-screen": "~0.6.1","expo-updates": "~0.3.3","firebase": "7.9.0","formik": "^2.1.4","geofirestore": "^3.4.3","geofirex": "^0.1.0","lodash": "^4.17.20","ngeohash": "^0.6.3","react": "^16.11.0","react-dom": "^16.13.1","react-hook-form": "^5.6.2","react-native": "^0.63.3","react-native-elements": "^2.3.2","react-native-gesture-handler": "^1.6.1","react-native-image-picker": "^2.3.1","react-native-reanimated": "^1.8.0","react-native-redash": "^14.1.1","react-native-safe-area-context": "3.1.4","react-native-safe-area-view": "^1.1.1","react-native-screens": "^2.7.0","react-native-shared-element": "^0.7.0","react-native-svg": "12.1.0","react-native-swiper": "^1.6.0","react-native-uuid": "^1.4.9","react-native-vector-icons": "^6.6.0","react-native-web": "0.14.1","react-navigation-shared-element": "^5.0.0-alpha1","react-redux": "^7.2.0","redux": "^4.0.5","redux-persist": "^6.0.0","uuid": "^8.3.1"  },"devDependencies": {"@babel/core": "^7.6.2","@babel/runtime": "^7.6.2","@react-native-community/eslint-config": "^1.0.0","@types/jest": "^24.0.24","@types/react-native": "^0.62.0","@types/react-redux": "^7.1.8","@types/react-test-renderer": "16.9.2","@typescript-eslint/eslint-plugin": "^2.27.0","@typescript-eslint/parser": "^2.27.0","babel-jest": "^24.9.0","eslint": "^6.5.1","jest": "^24.9.0","metro-react-native-babel-preset": "^0.58.0","prettier": "^2.0.4","react-test-renderer": "16.11.0","typescript": "^3.8.3"  },"jest": {"preset": "react-native","moduleFileExtensions": ["ts","tsx","js","jsx","json","node"    ]  }}

Thank you in advance

Rainbow-me React Native chart not showing Path

$
0
0

I am using @rainbow-me/animated-charts to make simple charts but the line path seems to be missing.

I copied the code below from their NPM github but it only shows a black box (i'm assuming its just the background of the chart) but the main line path is missing. Any help?

export const data = [  {x: 1453075200, y: 1.47},  {x: 1453161600, y: 1.37},  {x: 1453248000, y: 1.53},  {x: 1453334400, y: 1.54},  {x: 1453420800, y: 1.52},  {x: 1453507200, y: 2.03},  {x: 1453593600, y: 2.1},  {x: 1453680000, y: 2.5},  {x: 1453766400, y: 2.3},  {x: 1453852800, y: 2.42},  {x: 1453939200, y: 2.55},  {x: 1454025600, y: 2.41},  {x: 1454112000, y: 2.43},  {x: 1454198400, y: 2.2},];const {width: SIZE} = Dimensions.get('window');const points = monotoneCubicInterpolation(data)(40);const App = () => (<View style={{backgroundColor: 'black'}}><ChartPathProvider data={{points: points, smoothingStrategy: 'bezier'}}><ChartPath height={SIZE / 2} stroke="yellow" width={SIZE} /><ChartDot style={{backgroundColor: 'blue'}} /></ChartPathProvider></View>);

This is all that I am seeing on the iphone simulator.

iphone simulator


How to send data between two phones running my app using cellular data

$
0
0

I'd like to have my app able to create P2P connections between users over both wifi and cellular (if wifi is available I'll use it but it needs to support cellular too).

I've seen many questions/answers relating to wifi but none for cellular. Is this possible?

If it is, are there any libraries/packages out there that help do it?

The solution would also need to support both iOS and Android and be cross-compatible between the two.

ReactNative: No `Podfile' found in the project directory

$
0
0

I am working on an existing ReactNative project to add new features to the IOS app. But I tried to build and run the IOS app using "react-native run-ios" command, I am getting the following error.

Could not find "Podfile.lock" at null.lock. Did you run "pod install" in iOS directory?

To resolve the problem, first I run the following command in the ios folder of the project.

pod install

When I do that, I am getting the following error in the console.

[!] No `Podfile' found in the project directory.

To solve that error, I tried doing the following:

  • I run "sudo gem install cocoapods"
  • Then in the ios folder I run "pod init"
  • Then I run "pod install" within the ios folder

Then I got the following error:

[!] The target `xxxxxx xxxTests` is declared multiple times.

I removed the repeating one in the Podfile and tried running pod install again. This time it run but I am getting the following warning.

[!] The Podfile does not contain any dependencies.[!] Automatically assigning platform `iOS` with version `12.0` on target `Inventory Smart` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.[!] Automatically assigning platform `tvOS` with version `12.0` on target `Inventory Smart-tvOS` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

When I run react-native run-ios, I am getting the following error.

error Could not find "Podfile.lock" at null.lock. Did you run "pod install" in iOS directory?

How can I solve the issue?

Xcode archive getting cached react native ios

$
0
0

The debug build is working fine. It shows the current and updated code but when I'm creating a build in release mode or archive, it's showing some older version of the app. I tried cleaning the build folder multiple times, restarted Xcode and the machine multiple times but nothing seems to be working.

Xcode version: 12.4 (12D4e)OS: macOS Big Sur(version 11.3)RN verison: 0.63

Guide to Deploy React-Native App to App Store

$
0
0

After all my research I am still unable to find a proper documentation for deployment of app in app store without using expo.

The application runs fine in debugging mode and other testing device the only problem being is deployment.

Thought I have already found an article called Deploying a React Native App for iOS in medium but the problem is its incomplete and already outdated.

I already have setup environment in App Store . Please feel free to guide me I am willing to try any step.

How to get text selection of the react-native WebView?

$
0
0

We are building an news reader APP using React Native.Each news article are rendered inside a WebView.

We'd like to make user can select some text of the article and highlight it. Just like what can be seen in normal ebook reader Apps. Like this:

enter image description here

In a normal Desktop web browser. We can use 'mouseup' even and window.getSelection() to do the work. But in ReactNative's WebView. We don't know how to do it.

Please help, thanks.

Viewing all 17265 articles
Browse latest View live


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