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

RN-IOS Not loading images when build

$
0
0

After upgrading the react native version(0.62.2), I tried to set up the system with the react-native run-ios but it doesn't load the assets (images)

*Application working fine*Android working fine

What i tried;

  1. Before build the system i removed ios/build folder everytime

  2. Removed mainjs.bundle

  3. react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'

  4. Xcode "project name"> targets > build phases > Copy bundle resources try to add "assets" folder hereenter image description here


How to detect checkbox checked or not using react native?

$
0
0

In my scenario, I am trying to write a logic for checkbox check or uncheck. if check means need to print some string or uncheck mean need to print something else. how to achieve this using react native?

my code below

checked={this.state.checked}                onPress={() => {                  this.actiondone();                }}actiondone(){   //Here how to detect checked or not with if else}

React Native developer Menu not loading

$
0
0

Developer menu in ios simulator will not launch with either cmd + D or cmd + ctrl + z

  • things i've checked (in no order) :

    • cmd + r works properly
    • myApp and myAppTests schemes are set to debug mode
    • Slow Animations is off
    • Hardware > Keyboard > Connect Hardware Keyboard is on
    • watchman 4.7.0 is installed with brew install watchman (--HEAD needed libtoolize, in which brew changed to glibtoolize, therefore ./autogen couldn't find it )
    • Cleaned out Derived Data folder
    • Created new scheme for target
    • Upgraded XCode to 8.2.1 -> 8.3.1
    • react-native start --clear-cache starts successfully, react-native run-ios builds successfully
  • Other Issues

    • nw_connection_get_connected_socket_block_invoke 1262 Connection has no connected handler run indefinitely
    • react-native run-ios outputs

    Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/zelosApp.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not ExistCommand failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/zelosApp.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist

  • Versions

    • react-native = "^0.43.3"
    • watchman = "4.7.0"
    • xcode = "8.3.1"

Any tips / questions would be greatly appreciated!

Making HTTP requests isn’t working in React Native iOS

$
0
0

I am working on a group project where we have created a React Native app. Two of my team members worked on the server-side of the project and I am working on the client-side, the app works perfectly on Android but the http requests aren't working in iOS. I tried searching for solutions, most of them said that I need to add a few lines to the info.plist file, I tried all that but none of that worked so hopefully no one will mark this question as a duplicate.

I am stuck in the Login page of the app, here is the code: UserLogin.js

// This function is called when the login button is pressedsubmit=() => {// Some validationsif(Object.keys(this.state.success).length==0){  const URL="http://10.0.2.2:4000/userLogin"  const loginconfirm = async () => {    try {      return await axios.post(URL,this.state)      } catch (error) {        console.error(error)      }    }    const getloginconfirm = async () => {    const confirm = await loginconfirm()     if (confirm.data.message=="success") {        alert("Successfully logged in")        UserInfo.setName(confirm.data.name);        UserInfo.setId(confirm.data.id);          if(confirm.data.category=="Exporter"){          const {navigation} = this.props;          navigation.navigate('ScreenMove')          //Should go to ScreenMove.js        }else{          const {navigation} = this.props;          navigation.navigate('FarmerHomePage')        }       }    else{alert("The username does not exist or password does not match the username")}     }    getloginconfirm();}

Here's my info.plist

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>CFBundleDevelopmentRegion</key><string>en</string><key>CFBundleDisplayName</key><string>UNAGI</string><key>CFBundleExecutable</key><string>$(EXECUTABLE_NAME)</string><key>CFBundleIdentifier</key><string>$(PRODUCT_BUNDLE_IDENTIFIER)</string><key>CFBundleInfoDictionaryVersion</key><string>6.0</string><key>CFBundleName</key><string>$(PRODUCT_NAME)</string><key>CFBundlePackageType</key><string>APPL</string><key>CFBundleShortVersionString</key><string>1.0</string><key>CFBundleSignature</key><string>????</string><key>CFBundleURLTypes</key><array><dict/></array><key>CFBundleVersion</key><string>1</string><key>LSRequiresIPhoneOS</key><true/><key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/><key>NSExceptionDomains</key><dict><key>localhost</key><dict><key>NSIncludesSubdomains</key><false/><key>NSExceptionAllowsInsecureHTTPLoads</key><true/></dict></dict></dict><key>NSLocationWhenInUseUsageDescription</key><string></string><key>UILaunchStoryboardName</key><string>LaunchScreen</string><key>UIRequiredDeviceCapabilities</key><array><string>armv7</string></array><key>UISupportedInterfaceOrientations</key><array><string>UIInterfaceOrientationPortrait</string><string>UIInterfaceOrientationLandscapeLeft</string><string>UIInterfaceOrientationLandscapeRight</string></array><key>UIViewControllerBasedStatusBarAppearance</key><false/></dict></plist>

Here's the error I'm getting:

2020-04-29 20:02:04.589406+0530 UNAGI[30263:604617] [] nw_socket_handle_socket_event [C8:2] Socket SO_ERROR [60: Operation timed out] 2020-04-29 20:02:04.590542+0530 UNAGI[30263:604617] Connection 8: received failure notification 2020-04-29 20:02:04.592849+0530 UNAGI[30263:604617] Connection 8: failed to connect 1:60, reason -1 2020-04-29 20:02:04.594920+0530 UNAGI[30263:604617] Connection 8: encountered error(1:60) 2020-04-29 20:02:04.605649+0530 UNAGI[30263:604617] Task<695EDB52-BC43-4A20-93D2-A3481D44468C>.<3> HTTP load failed, 0/0 bytes (error code: -1001 [1:60]) 2020-04-29 20:02:04.622585+0530 UNAGI[30263:604513] Task <695EDB52-BC43-4A20-93D2-A3481D44468C>.<3> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001"The request timed out." UserInfo={_kCFStreamErrorCodeKey=60, NSUnderlyingError=0x60000235c360 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=60, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <695EDB52-BC43-4A20-93D2-A3481D44468C>.<3>, _NSURLErrorRelatedURLSessionTaskErrorKey=("LocalDataTask <695EDB52-BC43-4A20-93D2-A3481D44468C>.<3>" ), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=http://10.0.2.2:4000/userLogin, NSErrorFailingURLKey=http://10.0.2.2:4000/userLogin, _kCFStreamErrorDomainKey=1} 2020-04-29 20:02:04.639 [error][tid:com.facebook.react.JavaScript] Error: timeout of 0ms exceeded 2020-04-29 20:02:04.761 [warn][tid:com.facebook.react.JavaScript] Possible Unhandled Promise Rejection (id: 0): TypeError: undefined is not an object (evaluating'confirm.data') getloginconfirm$@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:132789:32 tryCatch@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:30544:23 invoke@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:30720:32 tryCatch@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:30544:23 invoke@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:30620:30http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:30630:21 tryCallOne@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:3344:16http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:3445:27 _callTimer@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:32458:17 _callImmediatesPass@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:32494:19 callImmediates@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:32712:33 callImmediates@[native code] __callImmediates@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2752:35http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2538:34 __guard@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2735:15 flushedQueue@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2537:21 flushedQueue@[native code] callFunctionReturnFlushedQueue@[native code]

Appreciate the feedback! :)

react native iOS: prevent keyboard from pushing the view up

$
0
0

I'm developing an iOS react native application, when an input gain the focus the keyboard is shown and the whole view is pushed up, how can i prevent this behavior ?

Thx.

Adding border only to the one side of the component in React Native (iOS)

$
0
0

I am facing something weird issue with React-Native's <Text/> component in iOS.

I wanted to apply borderBottomWidth style into <Text/> component but it did NOT work. However, the borderWidth option worked.

  • Worked<Text style={{borderWidth:1}}> React Native </Text>

  • NOT Worked<Text style={{borderBottomWidth:1}}> React Native </Text>


Is there any way to only apply bottom level border into the <Text/> component?

Thank you!


Note:

I am aware of following mentioned approaches in order to achieve this but in my case, I required to apply the style only to the <Text/> component.

  1. We can try wrapping <View/> to the <Text/> and apply borderBottomWidth style to the <View/>. (borderBottomWidth works fine with <View/>)
  2. Adding such <View/> just below to the <Text/> component which can look like a line.

React Native - sometimes app freezes when opened from background

$
0
0

Recently I noticed some strange bug in my IOS app (on Android I did not see that problem so far).

When the release mode is installed on my real device (the same problem happens even with production app from App Store), and when the app is opened from a background where it was for example 1,2 hours - my app freezes for several seconds (I can scroll my lists but Touchables are not working). Sometimes it freezes 5sec, sometimes 10sec... The freeze time is not constant.

For navigation, I use React Native Navigation. First of all, I thought that it can be a navigation problem - but I can navigate through tabs. So I can navigate through tabs, can scroll FlatLists in the tabs, but the list items are not Touchable - I can click them but onPress is not called.And after several sec when the freeze is over - my app does all pending navigations. Namely it opens all screens which were tapped while the app was frozen...

Who had such kind of problem? And how can I solve this? Please help, I am stuck here a couple of days :(

React-Native: 0.59.10;React: 16.8.3;

Thanks in advance

type error null is not an object (evaluating 'ShareDialog.canShow') in React Native FBSDK

$
0
0

I have followed this GitHub URL to integrate Facebook sharing in my application.https://github.com/facebook/react-native-fbsdkHere is my code:

constructor(props){        super(props);        this.state={            shareLinkContent : {                contentType: 'link',                contentDescription: 'Facebook sharing is easy!',                contentUrl: 'https://cabbazar.com',            },    }shareLinkWithShareDialog() {    var tmp = this;    ShareDialog.canShow(tmp.state.shareLinkContent).then(      function(canShow) {        if (canShow) {          return ShareDialog.show(tmp.state.shareLinkContent);        }      }    ).then(      function(result) {        console.log('handle result: '+ result);      },      function(error) {        console.log('Share fail with error: '+ error);      }    );  }

But I am always getting an error in my simulator. Do I need to setup anything in for Xcode? I checked this url but it is not solving my problem. null is not an object (evaluating 'ShareDialog.canShow')

This is the error which I am facing.Please suggest.

Thanks


Create custom SDK for React Native

$
0
0

What i want to achieve is something like creating my own SDK like what react-native-fbsdk or rn-onesignal-sdk provides , so that those functionalities can be implemented in the react native project.

Basic questions :

  1. Where to start from? Like what are the pre-requisites?
  2. Native coding is required i believe for this functionality?

Any explanation or any such experience in such would be of great help .

How to trigger SMS URI redirect in React-Native for multiple phone numbers?

$
0
0

So basically I have a code which is already working for android devices, its purpose is to trigger the device's messaging/sms app with a pre-filled text in it. This also opens the iMessage app on iOS with the message already pre-filled successfully, but unfortunately it doesn't support multiple phone numbers.

The following code is currently an example on what I'm trying to do. The returned value from generateURI() is later used on react native's Linking.openURL() command.

export function generateURI(arrayOfPhoneNumbers, event) {  var url = `sms:`  for(var i = 0; i < arrayOfPhoneNumbers.length; i++) {    url += `${arrayOfPhoneNumbers[i]},`  }  url = url.slice(0, -1); //remove last comma  url += `${getSMSDivider()}body=Test Message`  return url}function getSMSDivider() {  return Platform.OS === "ios" ? "&" : "?";}

Things worth noting:

Many URI Scheme patterns and standards don't seem to be respected by Apple as they are listed on the following link: https://tools.ietf.org/html/rfc5724. For instance: every sms field should use the character ?, but for iOS devices only & works, on top of that if you encode the string value passed as the body= attribute, android understands it fine, but iPhones don't. So unfortunately looking at a documented standard is not a viable solution when dealing with Apple's own rulebook.

Also Apple has a very strange statement saying The URL string must not include any message text or other information. on the following link https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/SMSLinks/SMSLinks.htmlBut that doesn't mean that they don't support multiple phone numbers.

iOS Build Crash after upgrade from 0.60.4 to 0.62.2

$
0
0

I recently upgraded my react-native project from 0.60.4 to 0.62.2. I added all the dependencies and resolved all the errors thrown in terminal one by one and I was successfully able to compile the project. Now when I run the build in XCode the app crashes with following log in XCode:

2020-04-16 16:25:50.635 [error][tid:com.facebook.react.JavaScript] TypeError: undefined is not an object (evaluating 'R.ART.Shape')2020-04-16 16:25:50.641 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'R.ART.Shape')2020-04-16 16:25:50.642 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)2020-04-16 16:25:50.686677+0530 MY_APP[14817:106507] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'R.ART.Shape')', reason: 'Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'R.ART.Shape'), stack:<unknown>@875:258v@2:1473<unknown>@874:228v@2:1473<unknown>@873:242v@2:1473<unknown>@872:150v@2:1473<unknown>@870:228v@2:1473<unknown>@868:342v@2:1473<unknown>@394:471v@2:1473<unknown>@6:70v@2:1473d@2:875global code@1220:3'*** First throw call stack:(    0   CoreFoundation                      0x000000010c4601bb __exceptionPreprocess + 331    1   libobjc.A.dylib                     0x000000010a846735 objc_exception_throw + 48    2   MY_APP                                0x0000000106f0426a RCTFormatError + 0    3   MY_APP                                0x0000000106f876fc -[RCTExceptionsManager reportFatal:stack:exceptionId:suppressRedBox:] + 519    4   MY_APP                                0x0000000106f88197 -[RCTExceptionsManager reportException:] + 1669    5   CoreFoundation                      0x000000010c46703c __invoking___ + 140    6   CoreFoundation                      0x000000010c4644d5 -[NSInvocation invoke] + 325    7   CoreFoundation                      0x000000010c464926 -[NSInvocation invokeWithTarget:] + 54    8   MY_APP                                0x0000000106f36c51 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 612    9   MY_APP                                0x0000000106f39203 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 251    10  MY_APP                                0x0000000106f38f85 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 78    11  libdispatch.dylib                   0x000000010e367595 _dispatch_call_block_and_release + 12    12  libdispatch.dylib                   0x000000010e368602 _dispatch_client_callout + 8    13  libdispatch.dylib                   0x000000010e36fb0b _dispatch_lane_serial_drain + 791    14  libdispatch.dylib                   0x000000010e370784 _dispatch_lane_invoke + 428    15  libdispatch.dylib                   0x000000010e37a89a _dispatch_workloop_worker_thread + 733    16  libsystem_pthread.dylib             0x000000010e6fd611 _pthread_wqthread + 421    17  libsystem_pthread.dylib             0x000000010e6fd3fd start_wqthread + 13)libc++abi.dylib: terminating with uncaught exception of type NSException

react-native info

System:    OS: macOS Mojave 10.14.6    CPU: (4) x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz    Memory: 317.59 MB / 8.00 GB    Shell: 5.3 - /bin/zsh  Binaries:    Node: 13.13.0 - /usr/local/bin/node    Yarn: Not Found    npm: 6.14.4 - /usr/local/bin/npm    Watchman: 4.9.0 - /usr/local/bin/watchman  Managers:    CocoaPods: 1.7.5 - /usr/local/bin/pod  SDKs:    iOS SDK:      Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1    Android SDK:      API Levels: 23, 24, 26, 28      Build Tools: 28.0.3      System Images: android-28 | Google Play Intel x86 Atom      Android NDK: Not Found  IDEs:    Android Studio: Not Found    Xcode: 10.1/10B61 - /usr/bin/xcodebuild  Languages:    Java: 1.8.0_73 - /usr/bin/javac    Python: 2.7.10 - /usr/bin/python  npmPackages:    @react-native-community/cli: Not Found    react: 16.11.0 => 16.11.0     react-native: 0.62.2 => 0.62.2   npmGlobalPackages:    *react-native*: Not Found

Any help would be highly appreciated.Thanks-in-advance.

React-Native-Sound path for ios file?

$
0
0

I'm curently developping an app on React-Native and I need to play sound.The fact is that I am on Ubuntu and developing with IntelIJ Idea.

I'm using react-native-sound library to play sounds.

Thanks to this post, I know where I put my .mp3 file for android, but the files have to be somewhere in the ios section as well ?

Where do we put them ?

How to reuse android device back button handler component from multiple classes using react native?

$
0
0

In my scenario, I am trying to use android back handler class in single file. How to access this from multiple class files instead of duplicating.

my code below

export default class hardware extends Component {  constructor(props) {    super(props);    this.BackButton = this.BackButton.bind(this);  }  componentWillMount() {    BackHandler.addEventListener'BackPress',this.BackButton);  }  componentWillUnmount() {    BackHandler.removeEventListener('BackPress',this.BackButton);  }  BackButton() {    if(this.props.navigation){        this.props.navigation.goBack(null);        return true;      }    }}

How to access from multiple other class files screens?

export default class screenone extends Component {   // how to access here?}

React-Native Bundle Error error SHA-1 for file is not computed

$
0
0

I am facing this error while creating bundle of react-native app.

I am executing command react-native bundle --dev false --entry-file index.js --bundle-output ios/main.jsbundle --platform ios

error SHA-1 for file /usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js (/usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js) is not computed. Run CLI with --verbose flag for more details.ReferenceError: SHA-1 for file /usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js (/usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js) is not computed    at DependencyGraph.getSha1 (/usr/local/lib/node_modules/react-native/node_modules/metro/src/node-haste/DependencyGraph.js:258:13)    at /usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:211:26    at Generator.next (<anonymous>)    at asyncGeneratorStep (/usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:46:24)    at _next (/usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:66:9)    at /usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:71:7    at new Promise (<anonymous>)    at /usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:63:12    at Transformer.transformFile (/usr/local/lib/node_modules/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:236:7)    at /usr/local/lib/node_modules/react-native/node_modules/metro/src/Bundler.js:87:34

react-native info command output

info Fetching system and libraries information...System:    OS: macOS Mojave 10.14.3    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz    Memory: 1.73 GB / 8.00 GB    Shell: 3.2.57 - /bin/bash  Binaries:    Node: 10.16.0 - /usr/local/bin/node    Yarn: 1.19.1 - /usr/local/bin/yarn    npm: 6.13.4 - /usr/local/bin/npm    Watchman: 4.9.0 - /usr/local/bin/watchman  SDKs:    iOS SDK:      Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2    Android SDK:      API Levels: 23, 25, 26, 27, 28, 29      Build Tools: 27.0.3, 28.0.3      System Images: android-29 | Google Play Intel x86 Atom      Android NDK: 20.1.5948944  IDEs:    Android Studio: 3.4 AI-183.6156.11.34.5522156    Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild  npmPackages:    react: 16.9.0 => 16.9.0     react-native: 0.61.5 => 0.61.5   npmGlobalPackages:    create-react-native-app: 2.0.2    react-native-cli: 2.0.1    react-native: 0.61.5

Cross platform Mobile SDK with react native for IOS and Android

$
0
0

I am beginner to react native. Please forgive if it is a very basic question. I have a Javascript client library which I want to write for both IOS and Android also. Instead of writing separately. would like to know if I could create such libraries using React Native.Like writing the library in react native and convert it to IOS or Android compatible. like adding the dependency in the existing Native application like Android or Swift codebase.

I checked with many articles where everything is explaining about integrating the react native app to native application with View but what I am looking for is different I need to integrate that library like dependency.Kindly help me with this

Thanks in Advance.


Unrecognized module map file Release-iphonesimulator/YogaKit/YogaKit.modulemap' not found

$
0
0

I have created a new react-native project and I am trying to build the iOS code but it is failing with below error:

fatal error: module map file

'/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Products/Release-iphonesimulator/YogaKit/YogaKit.modulemap' not found

react-native versions:react-native-cli: 2.0.1react-native: 0.62.2

stack trace from Xcode:

CompileC /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/Objects-normal/x86_64/thoughtrail_vers.o /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/DerivedSources/thoughtrail_vers.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'thoughtrail' from project 'thoughtrail')    cd /Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios    export LANG=en_US.US-ASCII    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -gmodules -fmodules-cache-path=/Users/ritz/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/ritz/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -iquote /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/thoughtrail-generated-files.hmap -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/thoughtrail-own-target-headers.hmap -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/thoughtrail-all-target-headers.hmap -iquote /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/thoughtrail-project-headers.hmap -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Products/Release-iphonesimulator/include -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/CocoaAsyncSocket -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/CocoaLibEvent -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/DoubleConversion -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/FBLazyVector -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/FBReactNativeSpec -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper-DoubleConversion -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper-Folly -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper-Glog -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper-PeerTalk -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Flipper-RSocket -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/FlipperKit -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/OpenSSL-Universal -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/RCTRequired -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/RCTTypeSafety -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-Core -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-RCTText -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-cxxreact -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-jsi -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/React-jsinspector -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/ReactCommon -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/Yoga -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/YogaKit -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/glog -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/react-native-webview -I/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Private/React-Core -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/DerivedSources-normal/x86_64 -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/DerivedSources/x86_64 -I/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/DerivedSources -F/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Products/Release-iphonesimulator -fmodule-map-file=/Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Products/Release-iphonesimulator/YogaKit/YogaKit.modulemap -fmodule-map-file=/Users/ritz/Documents/workspace/threesixnine/thoughtrail/source/mobile/thoughtrail/ios/Pods/Headers/Public/yoga/Yoga.modulemap -MMD -MT dependencies -MF /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/Objects-normal/x86_64/thoughtrail_vers.d --serialize-diagnostics /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/Objects-normal/x86_64/thoughtrail_vers.dia -c /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/DerivedSources/thoughtrail_vers.c -o /Users/ritz/Library/Developer/Xcode/DerivedData/thoughtrail-blthhaitoghgvzenyxayuwazwzfm/Build/Intermediates.noindex/thoughtrail.build/Release-iphonesimulator/thoughtrail.build/Objects-normal/x86_64/thoughtrail_vers.o

Kindly advise.

How to use universal link in react native ios

$
0
0

I am going to use univeral link for my react native ios app.I think I have done all settings.

project configuration

and also set Associate Domain setting in apple developer site and upload apple-app-site-association file to server.

apple-app-site-association file

and also add 2 functions in AppDelegate.m fileenter image description here

When I enter https://www.cbs.com.sg/, https://www.cbs.com.sg/auth, https://www.cbs.com.sg/auth/11 to Safari, then don't redirect to my app and open site.

How can I open app with link. Thanks for your advance

React Native Runtime Error: No native client found. Is Bugsnag React Native installed in your native code project?

$
0
0

I am trying to integrate bugsnag to my react native application. The app builds successfully but when the app loads on a simulator or emulator it throws an exception

Bugsnag: No native client found. Is BugsnagReactNative installed in your native code project?Client<unknown>    global.js:4:27loadModuleImplementation    require.js:331:6<unknown>    index.android.js:9loadModuleImplementation    require.js:331:6guardedLoadModule    require.js:197:45global code

I have updated my AndroidManifest.xml, MainApplication.java, Info.plist, build.gradle to include the api-key and bugsnag-react-native was successful too.

my package.json versions look like

"react": "16.8.3","react-native": "0.59.10","bugsnag-react-native": "^2.23.2",

AndroidManifest.xml

<meta-data android:name="com.bugsnag.android.API_KEY"               android:value="API KEY"/>

MainApplication.java

@Override public void onCreate() {    super.onCreate();    BugsnagReactNative.start(this);    SoLoader.init(this, /* native exopackage */ false);  }

info.plist

<key>BugsnagAPIKey</key><string>API KEY</string>

React native Line chart in both android and ios

$
0
0

Which one is good package for line chart in react-native , I tried @highcharts/highcharts-react-native but its not working in ios

How to get/set the iOS "preferred language" from a RN app?

$
0
0

We are developing a React Native app supporting three languages. For various reasons, we must have specific language selection logic in the app and a language selector within the app.

In iOS 13 there is a new "Preferred language" selector in the system settings for the app. We would want the in-app language selector to change the preferred language, and conversely that the user could also change their language in the system settings.

How can I read/write the iOS "Preferred language" in a React Native app?

Viewing all 16553 articles
Browse latest View live


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