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

React Native AsyncStorage storing values other than strings

$
0
0

Is there any way to store values other than strings with AsyncStorage? I want to store simple boolean values for example.

AsyncStorage.setItem('key', 'ok');

Is no problem, but:

AsyncStorage.setItem('key', false);

Does not work..


Why React Native RNFS's copyFile() cannot access to existing file on iOS?

$
0
0

I'm trying to access and copy a file from "/Documents" folder (on ios simulator) with RNFS but while .exists() can find the file, .copyFile() returns error as "The file 'temp.jpg' doesn't exists"

Why that can happen?

Here is my source file path (and also I can access it with image components):

Also adding "file://" to path doesn't work too.

/Users/myusername/Library/Developer/CoreSimulator/Devices/D305Z9A4-6C67-4DFE-A07D-1EF4D0302B87/data/Containers/Data/Application/B933EF45-391F-4882-986F-92B5430823D0/Documents/temp.jpg

Here is my code snippet, newlyCroppedImagePath is the path above. exists() returns correct result but .copyFile() returns "doesn't exists"

    RNFS.exists(newlyCroppedImagePath)    .then((success) => {        console.log('File Exists!'); // <--- here RNFS can read the file and returns this    })    .catch((err) => {      console.log("Exists Error: "+ err.message);    });    RNFS.copyFile(newlyCroppedImagePath, tmpFilePath)    .then((success) => {        console.log('file moved!');    })    .catch((err) => {      console.log("Error: "+ err.message); // <--- but copyFile returns "doesn't exists" error for temp.jpg    });

Integrate Python OpenCV with React Native/Android/iOS

$
0
0

I have an app built on React Native whose core functionality is to capture some images, analyse and process the images and return some results. As of now the image analysis was done in the server side using python and opencv. Only the results and the resultant images were returned. Now as per the requirement by the clients, due to privacy concerns, they want the image processing to be done on the mobile app itself. (As the images are medical related and they don't want the images to be sent to the server)

So, my question is, if there is a way I can use my existing python with opencv code and integrate it directly into react-native/android/ios?

Right now what I am doing is using the library react-native-opencv3 , numjs, etc to re-write the algorithm in react-native as I feel comfortable using javascript (I have no experience in swift). However not all opencv, numpy functions are supported by these libraries and it is consuming all the time to re-write the code.

I found about using jython, python-for-android and swift-python-interoperabilityCan I use these to directly integrate python opencv code into my current application? If yes, it would be great if someone can help me with some small example or guidelines as I cannot find anything.

Other method that I considered was:

Re-write the algorithm using native code and opencv-android and opencv-ios sdks and create the react-native bridge to call the algorithm. (I am guessing it will take a lot of time as I have to write in 2 different languages. Time that I don't have)

react native config cannot read env file in ios

$
0
0

I have follow the doc: https://github.com/luggit/react-native-config#iosuntil: Availability in Build settings and Info.pliststep 6. create new build phase for the scheme which will generate "tmp.xcconfig" before each build exposing values to Build Settings and Info.plist (this snippet has to be placed after "echo ... > tmp/envfile" if approach explained below is used)

  • I have created schema for my app then in build -> pre-actions. I click add new script and paste the following:echo ".env.staging"> /tmp/envfile"${SRCROOT}/../node_modules/react-native-config/ios/ReactNativeConfig/BuildXCConfig.rb""${SRCROOT}/..""${SRCROOT}/tmp.xcconfig"
  • then I go to info.plist and use $(MYENVVAR) to get value from .env file but it could not get any value.Has anyone ever faced it?my package json lock is "react-native-config": "0.11.7"

Happy to see any comments

How to get current route name in react-navigation?

$
0
0

I want the name of the current route or screen in react-navigation which I want to use inside if condition to make some changes.

Pod install not working in react-native mac os catalina 10.15

$
0
0

Error: System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory

in mac os catalina

How to replace endpoints on IPA file on azure build/release pipeline?

$
0
0

I have a build and release pipeline working pretty well for iOS app (react native), the problem is that as IPA is a "binary" file, I have to replace endpoints for each environment on my build pipeline, which I think is not right, because this way I have to implement 3 build (one for each enviroment "dev, staging, production).

Is there a way to build the IPA and on release pipeline unpack the IPA, replace the endpoints and the repack it?

I could see that IPA is just like a zip file and my endpoints is inside a main.jsbundle. Can I just unzip, replace and zip it back? What about provisioning profiles? signing?

I really appreciate any help

I want to do a badge increment on the main app icon while receiving a notification in inactive mode of the app

$
0
0

I am working on a chat app in react-native iOS. I want to do a badge increment on the main app icon when a notification is received, when the app is killed or force quit by the user. It works well when the app is in the background mode. But the didReceiveRemoteNotification method is not called when the app is inactive. Any idea on this? I added code inside the didReceiveRemoteNotification method of AppDelegate.

Added the following code set in AppDelegate file

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {      [RNNotifications didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];    }- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {      [RNNotifications didFailToRegisterForRemoteNotificationsWithError:error];    }- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {    NSLog(@"APPDELEGATE: didReceiveRemoteNotification:fetchCompletionHandler %@", userInfo);  int badge = (int) application.applicationIconBadgeNumber;  if ( application.applicationState == UIApplicationStateInactive ) {    [[UIApplication sharedApplication] setApplicationIconBadgeNumber:badge+1];  }  else if(application.applicationState == UIApplicationStateBackground) {    [[UIApplication sharedApplication] setApplicationIconBadgeNumber:badge+1];  }  else if(application.applicationState == UIApplicationStateActive) {    [[UIApplication sharedApplication] setApplicationIconBadgeNumber:badge+1];  }  completionHandler(UIBackgroundFetchResultNewData);}

With react native navigation on iOS, how to change the background color of the status bar when the app is in background?

$
0
0

I am trying to change the background colour of the status bar, in iOS, when the app goes in background to let the user know that the app is running in the background.but no success so far.

My code looks like that:

function _handleAppStateChange(nextAppState) {    if (this.state.appState.match(/inactive|background/) && nextAppState === "active") {          Navigation.mergeOptions(component.id, {              statusBar: {                  visible: false,              }          });    }else if(this.state.appState.match(/active/) && nextAppState === "inactive"){          Navigation.mergeOptions(component.id, {              statusBar: {                  visible: true,                  backgroundColor: 'yellow',              }          });    }    this.setState({ appState: nextAppState });};

If it is not possible to do it via react-native-navigation, would it be possible with objective-c?

Thanks in advance for you help!

Self signed certificate not working on xcode simulator (using react native webview)

$
0
0

I've applied all the changes in info.plist. I've also installed certificate on simulator, but no luck.

Still getting the error:

Blockquote"code": -1202, "description": "The certificate for this server is invalid. You might be connecting to a server."

What might be causing this error?

React Native - XCode unable to open Pods xcconfig

$
0
0

I have react native project. It runs on both ios and android properly.I managed to build it for android, but while I try to build it for ios I encounter some issues.I get an error

/ios/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit.xcconfig: unable to open file (in target "FBSDKCoreKit" in project "Pods")

This error repeats itself for all the installed Pods.I tried to reinstall the Pods, clean the Pods cache, re-install the FBSDK package but nothing works.I can see the file, in terminal, and even in the XCode Pods folder.They files have 'rwx' (actually 777) privilege.

Any help would be appreciated.

React Native v0.62 upgrade increase iOS .ipa size

$
0
0

I recently upgraded from RN v0.60.5 to RN v0.62.2 and I noticed that my iOS builds are now producing an .ipa file nearly triple in size, from ~50MB to 130MB. I can't seem to find any reason for this. I'm guessing it has something to do with Flipper, but I have no evidence of this - simply a guess. I do have several images and fonts that I can probably be removed to decrease the overall size, but regardless, why would my builds produce such a huge increase in size? I can't seem to find any reason for this.

Trying to push StackScreen in React Native

$
0
0

App.js

<NavigationContainer ref={containerRef} initialState={initialNavigationState}><Drawer.Navigator><Drawer.Screen name="Feed" component={BottomTabNavigator} options={{swipeEnabled: false}} /><Drawer.Screen name="Settings" component={SettingsStack} options={{swipeEnabled: false}} /></Drawer.Navigator></NavigationContainer>

BottomTabNavigator

const BottomTab = createBottomTabNavigator();export default function BottomTabNavigator({ navigation, route }) {{...HomeStack Code}{...ProfileStack Code}const MyMessagesStack = createStackNavigator();function MessagesStack() {  return (<MyMessagesStack.Navigator initialRouteName={"Messages"}     screenOptions={{headerShown: false}}><MyMessagesStack.Screen name="Messages" component={MessagesScreen} /><MyMessagesStack.Screen name="Chats" component={ChatScreen} /></MyMessagesStack.Navigator>    );}return (<BottomTab.Navigator initialRouteName={INITIAL_ROUTE_NAME} ><BottomTab.Screen        name="Home"        component={HomeStack}        options={{title: 'Feed'}}      /><BottomTab.Screen        name="Messages"        component={MessagesStack}        options={{title: 'Messages'}}      /><BottomTab.Screen        name="Profile"        component={ProfileStack}        options={{title: 'Profile'}}      /></BottomTab.Navigator>  );}

MessageScreen.js

//flatscreen to render message components</View><FlatList        data={Data}        keyExtractor={(item, index) => index.toString()}        renderItem={({ item }) => (<TouchableOpacity onPress={() => props.navigation.navigate('Chats')} ><Message              image={item.image}              name={item.name}              lastMessage={item.message}              timeStamp={item.timestamp}              opened            /></TouchableOpacity>        )}      />

Whenever I activate the onPress method by tapping on a message, the MessageScreen component just re-renders rather than displaying ChatScreen. This happens even if I replace ChatScreen with any other screen. Any help on the matter is much appreciated.

Upload React Native application to App Store without application Loader

$
0
0

I am trying to upload my app that was built in react-native to the app store but Application Loader is no longer used in Xcode anyone knows what I need to do. All of the only sources I found were using Application Loader

Can I build and archive react native app for ios in debug mode?

$
0
0

As title says, I want to build and archive a react native app for ios, but I want the .ipa file to be in debug mode. I've set the Build configuration to Debug in the scheme when building the app, but it's not working.


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.

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.

_gestureRecognizer:shouldReceiveEvent - unrecognized selector sent to instance

$
0
0

Please help me, I am trying to run my react-native app in xCode and it running but when i press the screen show up thit error.

mainAppDelegant.h

import <React/RCTBridgeDelegate.h>import <UIKit/UIKit.h>@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>@property (nonatomic, strong) UIWindow *window;@end

AppDelegant.m

@implementation AppDelegate-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary  *)launchOptions {   NSURL *jsCodeLocation;   jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];  [ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:launchOptions];    RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:jsCodeLocation                                          moduleProvider:nil                                           launchOptions:launchOptions];  #if RCT_DEV    [bridge moduleForClass:[RCTDevLoadingView class]];  #endif    RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge                                                 moduleName:@"<AddYourAppNameHere>"                                          initialProperties:nil];  return YES;}

React-Native IOS flashing white while switching between two Views/Images

$
0
0

I'm rendering a View with an Image that has an 8 pixel margin around it. When the image is pressed, it changes to a new component that is the same Image with no margin. On android this picture "grows" nicely, but I just started testing on an iphone and the screen flashes white while transitioning. The code looks something like this

{ zoom ? (<View style={{ margin: 0 }} ><other components ...><Image ... /></View>  ) : (<TouchableOpacity style={{ margin: 8 }} ><other components ...><Image ... /></TouchableOpacity>  )}

When the image is pressed, the zoom boolean changes from false to true, and renders the other image with no margin.

How can I prevent ios flashing white when changing between these two components?

react native ssl pinning

$
0
0

We are building a react native 0.61.4 app and we want to use the library react-native-ssl-pinning. There is a problem with ios certificate and fetch returns error "cancelled" when running on ios.

We have followed the steps from https://www.npmjs.com/package/react-native-ssl-pinning .I am not sure about the step two at Usage ios: (skip this if you are using certificate pinning) no extra step needed for public key pinning, AFNetworking will extract the public key from the certificate.

Any thoughts about what might have been wrong?

Viewing all 16558 articles
Browse latest View live


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