I would like to ask how react native handle or do the responsive font. For example in iphone 4s i Have fontSize: 14, while in iphone 6 I have fontSize: 18.
React Native Responsive Font Size
Trying to Broadcast an iBeacon using React Native
I am trying to create a simple app using React Native that broadcasts an iBeacon. I have found a possible third-party module called react-native-ibeacon-simulator but even a simple test fails. I know this has not been updated for some time however I can't find a better solution...
I saved the index.ios.js
file as iBeacon.js
import React, { Component } from 'react'
import { Text, View } from 'react-native'
import ibeacon from './ibeacon'
export default class App extends Component {
componentWillMount() {
const uuid = '04bc1d42-98be-4031-a4a9-50c76cb3e1b9'
const identifier = 'com.myapp'
ibeacon.startAdvertisingBeaconWithString(uuid, identifier, 0, 0)
}
render() {
return (<View><Text>iBeacon</Text></View>)
}
}
However I get the following error in the terminal (and on the screen of the connected iPhone 6S running iOS13:
Warning: %s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI., RootErrorBoundary
- node_modules/expo/build/environment/muteWarnings.fx.js:27:24 in error
- ... 28 more stack frames from framework internals
TypeError: null is not an object (evaluating 'NativeBeaconBroadcast.startSharedAdvertisingBeaconWithString')
* ibeacon.js:19:26 in startAdvertisingBeaconWithString
* App.js:12:43 in componentWillMount
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:7430:4 in callComponentWillMount
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:7576:27 in mountClassInstance
- ... 19 more stack frames from framework internals
I've tried debugging but can't figure out why this is happening...
Unable to bridge React native project and ios Project(mapbox navigation) with parameters
I would like to launch mapbox navigation turn by turn through react native
(0.59.10
). when i do it without parameters (through an obj-c bridge and then a method defined in swift ) its works PERFECTLY . (parameters are defined in the swift function) .
when i want to send parameters(WITH ONE STRING JUST TO TRY IF IT WILL BE RECEIVED CORRECTLY) from react native its not working and i get this error :
Exception 'takeMeToWH' : is not recognized . Objective -c method'. was thrown while invoking 'takeMeToWH' on target RNMapBoxRNIos with params(heloo)
I am relatively new in react . i use xcode 11.2.1 and swift 5 Here is my code :
js file :
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View,TouchableOpacity,NativeModules} from 'react-native';
export default class App extends React.Component{
render() {
return (
<View style={styles.container}>
<TouchableOpacity onPress={()=>NativeModules.RNMapBoxRNIos.takeMeToWH("heloo")}>
<Text>Press</Text>
</TouchableOpacity>
</View>
);
}
}
obj-c file :
#import <Foundation/Foundation.h>
#import "React/RCTBridgeModule.h"
@interface RCT_EXTERN_REMAP_MODULE(RNMapBoxRNIos, MapBoxRNIos, NSObject)
RCT_EXTERN_METHOD(takeMeToWH:(NSString *)name)
@end
swift file :
import Foundation
import UIKit
import MapboxDirections
import MapboxCoreNavigation
import MapboxNavigation
@objc(MapBoxRNIos)
class MapBoxRNIos: NSObject {
var navigateButton:UIButton!
@objc
func takeMeToWH(_name:NSString) {
print(_name)
let origin = Waypoint(coordinate: CLLocationCoordinate2D(latitude: 38.9131752, longitude: -77.0324047), name: "Mapbox")
let destination = Waypoint(coordinate: CLLocationCoordinate2D(latitude: 38.8977, longitude: -77.0365), name: "White House")
let options = NavigationRouteOptions(waypoints: [origin, destination])
// addButton()
Directions.shared.calculate(options) { (waypoints, routes, error) in
guard let route = routes?.first else { return }
let viewController = NavigationViewController(for: route)
let appDelegate = UIApplication.shared.delegate
appDelegate!.window!!.rootViewController!.present(viewController, animated: true, completion: nil)
}
}```
signInWithPhoneNumber() is not working in react-native
hi I am geeting this error in
firebase.auth().signInWithPhoneNumber(phoneNumber)
Error Domain=FIRAuthErrorDomain Code=17057 "User interaction is still ongoing, another view cannot be presented." UserInfo={NSLocalizedDescription=User interaction is still ongoing, another view cannot be presented., FIRAuthErrorUserInfoNameKey=ERROR_WEB_CONTEXT_ALREADY_PRESENTED}
in RNFirebaseAuth.m.
here is error
const confirmResult = await firebase.auth().signInWithPhoneNumber(phoneNumber);
if (confirmResult) {
this.setState({
confirmResult,
message: 'Code has been sent!',
step: 2,
}, this.goToEnterOtpScreen());
}
Illegal callback invocation from native module. This callback type only permits a single invocation from native code.
"react-native-firebase": "^5.5.4",
pod 'Firebase/Core', '~> 6.3.0'
pod 'Firebase/Auth', '~> 6.3.0'
pod 'Firebase/Database', '~> 6.3.0'
pod 'Firebase/Functions', '~> 6.3.0'
pod 'Firebase/DynamicLinks', '~> 6.3.0'
pod 'Firebase/Firestore', '~> 6.3.0'
pod 'Firebase/Messaging', '~> 6.3.0'
pod 'Firebase/RemoteConfig', '~> 6.3.0'
pod 'Firebase/Storage', '~> 6.3.0'
pod 'Firebase/Performance', '~> 6.3.0'
How can i regenerate ios and android folder?
How can I regenerate ios and android folder in React Native project?
react-native-cli: 2.0.1 react-native: 0.61.2
❯ react-native eject error Unrecognized command "eject". info Run "react-native --help" to see a list of all available commands.
❯ react-native upgrade --legacy true error: unknown option `--legacy'
React Native - How to create URL scheme for my application?
I want to redirect the user from my website to my application. I explore this documentation but I am failed to know how to create a link
or deep link
for my application that will redirect the user to my application and this link will be understood by the application.
Can anyone tell me a little bit about the linking and deep linking and also teach me the steps how to create a link
or deep link
for my app? What is the process & method of creating the URL scheme for your application? I don't have any background in Java
or Objective-C
. Thanks !!!
React native IOS InputAccessoryView disappear from the screen after close modal
When I have on my screen InputAccessoryView which has component without nativeID (So it is constantly showing even if the keyboard is not shown) and I open and close Modal (react-native modal) then InputAccessoryView disappear from the screen with the component. I don't know why this is happening and also I don't know how to keep this InputAccessoryView on the screen.
Here is the code to reproduce it:
import * as React from 'react';
import { View, ScrollView, AppRegistry, TextInput, InputAccessoryView, Button } from 'react-native';
import {Modal, Text, TouchableHighlight, Alert} from 'react-native';
import Constants from 'expo-constants';
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {text: 'Placeholder Text', modalVisible: false,};
}
setModalVisible(visible) {
this.setState({modalVisible: visible});
}
render() {
return (
<View style={{flex:1}}>
<Modal
animationType="slide"
transparent={false}
visible={this.state.modalVisible}
onRequestClose={() => {
Alert.alert('Modal has been closed.');
}}>
<View style={{marginTop: 22, padding: 50, backgroundColor: '#0066ff'}}>
<View>
<TouchableHighlight
onPress={() => {
this.setModalVisible(!this.state.modalVisible);
}}>
<Text style={{color:"#ffffff"}}>Hide Modal</Text>
</TouchableHighlight>
</View>
</View>
</Modal>
<ScrollView style={{ backgroundColor: '#6ED4C8'}}>
<Text></Text>
<TouchableHighlight
onPress={() => {
this.setModalVisible(true);
}}>
<Text style={{padding: 40, backgroundColor: "#ff3300"}}>Show Modal</Text>
</TouchableHighlight>
</ScrollView>
<InputAccessoryView backgroundColor="#ff9900">
<TextInput
style={{
padding: 20,
paddingTop: 50,
}}
onChangeText={text => this.setState({text})}
value={this.state.text}
/>
</InputAccessoryView>
</View>
);
}
}
Here you can find the online version (Keep in mind that the issue is only relevant for IOS): https://snack.expo.io/SJB7ipm6B
Some Images:
Thank you for your time and your help!
React Native onStartShouldSetResponder and onResponderRelease?
I've created a button that I want to have call a function on click and then again on release. A normal TouchableOpacity or other will trigger a function upon release of a click only, I need functions on both click AND release.
<View
style={styles.touchbutton}
onStartShouldSetResponder={() => this.clickOn()}
onResponderRelease={() => this.clickRelease()}>
<Text style={styles.dark}>Button</Text>
</View>
The above code works on click but not on release. I also tried onResponderReject but that doesn't work either. Hard to find what the command should be.
Audio background mode not working with react-native-track-player
I'm currently use react-native-track-player
version 1.1.8
to stream audio from Internet.
It works fine (react-native
version 0.61.4
)
I would like now to use it in background mode, to be able to continue to listen to radio if my app is in background mode.
I followed instructions from https://react-native-kit.github.io/react-native-track-player/background/, so add capabilities in xCode, which should be enough.
It doesn't work so I also add
TrackPlayer.updateOptions({
stopWithApp: false
});
but stil not working on real device on iOS 13. I can see this message when the app goes background :
Can't end BackgroundTask: no background task exists with identifier 1 (0x1),
or it may have already been ended.
Break in UIApplicationEndBackgroundTaskError() to debug.
But breakpoint does not give additional informations.
Any idea or experience with this audio library in background mode? Thanks!
React Native - is there a library for sign in with Apple ID?
Looking for a react-native library to login with AppleID
Nao consigor executar o comando react-native run-ios. Build FAILED [closed]
events.js:167 throw er; // Unhandled 'error' event ^
Error: listen EADDRINUSE :::8081 at Server.setupListenHandle [as _listen2] (net.js:1286:14) at listenInCluster (net.js:1334:12) at Server.listen (net.js:1421:7) at Promise (/Users/titan/titan/apps/apptitanios/node_modules/metro/src/index.js:251:20) at new Promise () at Object. (/Users/titan/titan/apps/apptitanios/node_modules/metro/src/index.js:250:14) at Generator.next () at asyncGeneratorStep (/Users/titan/titan/apps/apptitanios/node_modules/metro/src/index.js:46:24) at _next (/Users/titan/titan/apps/apptitanios/node_modules/metro/src/index.js:66:9) Emitted 'error' event at: at Server.WebSocketServer._onServerError (/Users/titan/titan/apps/apptitanios/node_modules/ws/lib/WebSocketServer.js:82:50) at Server.emit (events.js:187:15) at emitErrorNT (net.js:1313:8) at process._tickCallback (internal/process/next_tick.js:63:19)
Integrate FCM push notifications on react-native ios
Currently the push notifications work fine on Android. But in IOS i am unable to receive the notifications from firebase.
Is the FCM device token support on IOS13? Should i use gettoken or getapnstoken?
Pointer Events Not Working on Ios React Native
I have map-view on the background and a bottom sheet above it with different icon and on swipe up i disable the map-view by making pointer-event value 'none'. Below is the code its working fine on android but map view not taking any event until i remove the pointer-event. i tried giving none or auto directly but its not working
Code Starts Here
toggleBackground = (status) => {
this.setState({
enableBackground: status
})
}
// this is the render method
// here i am using bottom sheet and map view
return (
<View style={{
flex: 1,
backgroundColor: '#2c2c2f'//added background color, because bottom sheet doesn't appear on android otherwise
}}>
<BottomSheetBehavior
// snapPoints={[300, BOTTOM_SHEET_MAX_HEIGHT]}
snapPoints={this.state.sheetSnapPoints}
ref={this.bottomSheetRef}
renderContent={this.renderInner}
// renderHeader={this.renderHeader}
initialSnap={0}
callbackNode={this.fall}
enabledInnerScrolling={true}
// enabledInnerScrolling={false}
enabledGestureInteraction={true}
// enabledBottomClamp={true}//for locking snapping in bottom
// enabledContentGestureInteraction={false}
// enabledGestureInteraction={this.state.enableTapping}//using this to lock manual swiping of bottomsheet
enabledContentTapInteraction={false}//because clicks on TouchableOpcaity were not working in android
onOpenStart={() => {
this.toggleBackground(false)
}}
onCloseEnd={() => {
this.toggleBackground(true)
}}
/>
<Animated.View
style={{
alignItems: 'center',
opacity: Animated.add(0.1, Animated.multiply(this.fall, 0.9))
}} >
<View
style={{
width: width,
// height: height,
height: Platform.OS == 'ios' ? height :
(StatusBar.currentHeight > 24 ? height + StatusBar.currentHeight : height),
}}>
<MapView
// customMapStyle={MAP_STYLE}
style={{ flex: 1, }}
provider={PROVIDER_GOOGLE}
followsUserLocation={true}
showsCompass={false}
mapType={this.state.selectedMapType}
showsMyLocationButton={false}
ref={component => this._map = component}
onRegionChangeComplete={(region) => { this.onRegionChangeComplete(region) }}
// initialRegion={{
// latitude: this.props.navigation.getParam('lat', 25.198535),
// longitude: this.props.navigation.getParam('lng', 55.277923),
// latitudeDelta: 0.0030, longitudeDelta: 0.0030
// }}
pointerEvents={this.state.enableBackground ? 'auto' : 'none'}
initialCamera={{
center: {
latitude: this.props.navigation.getParam('lat', 25.198535),
longitude: this.props.navigation.getParam('lng', 55.277923),
},
zoom: 18,
pitch: 0,
heading: 0,
altitude: 0,
}}
showsUserLocation={true} />
{
!this.state.enableBackground &&
<TouchableWithoutFeedback
onPress={() => {
this.bottomSheetRef.current.snapTo(0)
}}
><View
style={{
flex: 1,
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0,
elevation: 14
}}></View></TouchableWithoutFeedback>
}
</View>
</Animated.View>
</View>
);
Expo upload:ios with Release Channels
If an Expo iOS app has been built using Expo with a specified release channel prod-v1
expo build:ios --release-channel prod-v1
how can we tell expo upload:ios
to upload this build that is configured to pull updates from the release channel prod-v1
?
Using Expo SDK 34, expo-cli@3.0.9, node v12.6.0, Mac OS X Mojave 10.14.5
expo upload:ios
does not appear to have any parameters for specifying the release channel
Output of expo upload:ios --help
:
$ expo upload:ios --help
Usage: upload:ios|ui [options] [projectDir]
Uploads a standalone app to Apple TestFlight (works on macOS only). Uploads the latest build by default.
Options:
--latest uploads the latest build (default)
--id <id> id of the build to upload
--path <path> path to the .ipa file
--apple-id <apple-id> your Apple ID username (you can also set EXPO_APPLE_ID env variable)
--itc-team-id <itc-team-id> App Store Connect Team ID (optional if there is only one team available)
--apple-id-password <apple-id-password> your Apple ID password (you can also set EXPO_APPLE_ID_PASSWORD env variable)
--app-name <app-name> the name of your app as it will appear on the App Store, this can't be longer than 30 characters (default: expo.name from app.json)
--sku <sku> a unique ID for your app that is not visible on the App Store, will be generated unless provided
--language <language> primary language (e.g. English, German; run `expo upload:ios --help` to see the list of available languages) (default: English)
--public-url <url> The URL of an externally hosted manifest (for self-hosted apps)
--config [file] Specify a path to app.json
-h, --help output usage information
ld: library not found for -lRCTBlob clang: error: linker command failed
Ld /Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp normal x86_64 (in target 'MyApp' from project 'MyApp') cd /Users/ajaysivan/MyApp/OfflineUpgrade/MyApp-offline-app/ios /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios9.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/BVLinearGradient -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/DoubleConversion -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/Folly -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/RCTTypeSafety -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/RNDeviceInfo -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/RNVectorIcons -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-Core -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-CoreModules -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-RCTActionSheet -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-RCTAnimation -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-RCTBlob -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-RCTImage -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-RCTLinking -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-RCTNetwork -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-RCTSettings -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-RCTText -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-RCTVibration -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-cxxreact -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-jsi -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-jsiexecutor -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/React-jsinspector -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/ReactCommon -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/Sentry -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/SentryReactNative -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/Yoga -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/glog -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/react-native-config -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/react-native-geolocation -L/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/react-native-netinfo -F/Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator -filelist /Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Intermediates.noindex/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/MyApp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -object_path_lto -Xlinker /Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Intermediates.noindex/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/MyApp_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lBVLinearGradient -lDoubleConversion -lFBReactNativeSpec -lFolly -lRCTTypeSafety -lRNDeviceInfo -lRNVectorIcons -lReact-Core -lReact-CoreModules -lReact-RCTActionSheet -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReactCommon -lSentry -lSentryReactNative -lYoga -lc++ -lglog -lreact-native-config -lreact-native-geolocation -lreact-native-netinfo -lstdc++ -lz -framework Foundation -framework JavaScriptCore -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Intermediates.noindex/MyApp.build/Debug-iphonesimulator/MyApp.build/MyApp.app-Simulated.xcent -framework JavaScriptCore -lRCTBlob -lRCTAnimation -lReact -lRCTActionSheet -lRCTGeolocation -lRCTImage -lRCTLinking -lRCTNetwork -lRCTSettings -lRCTText -lRCTVibration -lRCTWebSocket -lPods-MyApp -Xlinker -dependency_info -Xlinker /Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Intermediates.noindex/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/MyApp_dependency_info.dat -o /Users/ajaysivan/Library/Developer/Xcode/DerivedData/MyApp-fhlxfvymksoqhsglhalddkzaekrm/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp
.
ld: library not found for -lRCTBlob clang: error: linker command failed with exit code 1 (use -v to see invocation)
Getting the above error when building react-native project in Xcode11. I recently upgraded to react native 0.61.5 and everything works fine on android. No Idea why it is not working on iOS.
I'm really new to iOS and react-native. If you need any further information please ask.
React Native: Error message when running react-native run-ios
Has anyone run into this issue?
I've used both solutions but no luck...
Solution 1: iOS Delete the build folder and rerun the project rm -rf ios/build react-native run-ios
Solution 2: iOS Open a second terminal window in the project directory and run npm start. Then in the first terminal window, run react-native run-ios.
I've provided a screenshot as well. I've also checked outside resources (Google, Stack Overflow etc...)
Thank you in advance.
React-native ios application build with expo returns error 413 with publish
i have problem with running build react-native application based on expo
expo build:ios returns
Request failed with status code 413 Error: Request failed with status code 413 at createError (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/createError.js:16:15) at settle (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/adapters/http.js:237:11) at IncomingMessage.emit (events.js:205:15) at endReadableNT (_stream_readable.js:1154:12) at processTicksAndRejections (internal/process/task_queues.js:84:9)
Thanks a lot for any advice
How to implement radio button in React Native
I am converting React code to React Native. So I need to implement radio buttons.
which technology digital banks use to transfer money
I am developing an app for instant money transfer between customer from different banks, so I wanted to know what technology is used and what security methods too! An example would be Revolut, how does it work?
DEBUG macro is not set in Xcode while running the project in debug mode
I created a new react-native project which spits out an Android project and an iOS project. I am using Swift, so I replace the AppDelegate.m
and AppDelegate.h
files with AppDelegate.swift
. I use the DEBUG
macro like this in the swift file but it is always set to false even in debug mode due to which I am not able to use it.
#if DEBUG
let jsCodeLocation = RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index", fallbackResource:nil)
#else
let jsCodeLocation = Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
I searched for debug
in Build Settings
on Xcode and I found the below which seems to be set correctly.
How can I assure that the DEBUG
macro is set while running the debug mode and not set otherwise. Thanks.