react-native-ios

Invariant Violation: TurboModuleRegistry.getEnforcing(…): 'DevSettings' could not be found

僤鯓⒐⒋嵵緔 提交于 2020-06-27 17:14:06
问题 App get crashed with the above message. Unable to view my app screen. Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the na..., stack: platform :ios, '9.0' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' target 'App' do # Pods for App pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" #pod 'BVLinearGradient', :path => '..

How to know the useful height of an iOS device in React Native?

戏子无情 提交于 2020-06-25 02:59:10
问题 In some very specific cases I need to set the height of a View to the full height of the device useful area (without using flex). I was using a hardcoded "notch height" to calculate this useful height but I just discovered that the notch can have different heights depending on the device. (3 points of difference between iPhone XS and iPhone XS Max). Is there a way to know the useful height of a device with notch and safe area? 回答1: You can use the react-native-safe-area. it provides function

Xcode Provisional Profile: doesn't include signing certificate “Apple Distribution…”

时光总嘲笑我的痴心妄想 提交于 2020-06-17 09:42:35
问题 I have made 2 certificates The first one is of type "iOS Distribution". The second one is of type "Distribution". As far as I can remember, one of the steps of creating the second one was to choose "Apple Distribution" in the checklist as one of the steps to creating the certificate. I have generated a Provisional Profile and added it to my Xcode and I keep on getting this error: doesn't include signing certificate "Apple Distribution MYNAME (ABCDEF)" So I go to the Provisional Profile

Access Keychain values stored by ExpoSecureStore from a Flutter app [iOS]

∥☆過路亽.° 提交于 2020-06-16 08:55:31
问题 I have a ReactNative app (only published for iOS) which uses ExpoSecureStore to put and read values from iOS Keychain. I am transitioning to Flutter and I need to keep the users logged in, i.e. to get their auth tokens from the previously installed RN version of the app. So, here is what I do: I install the RN app from the App store, Log in (the token is saved with ExpoSecureStore), Install my Flutter app Try to access the Keychain - nothing found! Reinstall the RN app from the App store,

Access Keychain values stored by ExpoSecureStore from a Flutter app [iOS]

泄露秘密 提交于 2020-06-16 08:54:07
问题 I have a ReactNative app (only published for iOS) which uses ExpoSecureStore to put and read values from iOS Keychain. I am transitioning to Flutter and I need to keep the users logged in, i.e. to get their auth tokens from the previously installed RN version of the app. So, here is what I do: I install the RN app from the App store, Log in (the token is saved with ExpoSecureStore), Install my Flutter app Try to access the Keychain - nothing found! Reinstall the RN app from the App store,

Implementing ssl pinning in a react-native application using TrustKit iOS

血红的双手。 提交于 2020-06-15 10:17:56
问题 I'm trying to implement SSL pinning in a react-native application (RN 0.60) and I'm using Trustkit. Following the guide posted in https://github.com/datatheorem/TrustKit these are the step that I've done: 1) Install TrustKit pod using pod 'TrustKit' and pod install 2) Added to my AppDelegate.m this piece of code: #import <TrustKit/TrustKit.h> //inside didFinishLaunchingWithOptions NSDictionary *trustKitConfig = @{ kTSKSwizzleNetworkDelegates: @YES, kTSKPinnedDomains: @{ @"www.datatheorem.com"

Implementing ssl pinning in a react-native application using TrustKit iOS

不羁的心 提交于 2020-06-15 10:12:23
问题 I'm trying to implement SSL pinning in a react-native application (RN 0.60) and I'm using Trustkit. Following the guide posted in https://github.com/datatheorem/TrustKit these are the step that I've done: 1) Install TrustKit pod using pod 'TrustKit' and pod install 2) Added to my AppDelegate.m this piece of code: #import <TrustKit/TrustKit.h> //inside didFinishLaunchingWithOptions NSDictionary *trustKitConfig = @{ kTSKSwizzleNetworkDelegates: @YES, kTSKPinnedDomains: @{ @"www.datatheorem.com"

Amplify React Native - Duplicate Error using amplify add api

牧云@^-^@ 提交于 2020-05-29 07:36:09
问题 I'm using this Amplify guide https://aws-amplify.github.io/docs/js/tutorials/building-react-native-apps/#connect-to-your-backend-1 and when I create an API using "aplify add api" the app fails. I'm using "expo" and I'm using IphoneX for test phase. My app code is import React, { Component } from 'react'; import { StyleSheet, Text, Button, View, Alert } from 'react-native'; import Amplify, { API } from 'aws-amplify'; import amplify from './aws-exports'; import awsmobile from './aws-exports';

Amplify React Native - Duplicate Error using amplify add api

烂漫一生 提交于 2020-05-29 07:35:13
问题 I'm using this Amplify guide https://aws-amplify.github.io/docs/js/tutorials/building-react-native-apps/#connect-to-your-backend-1 and when I create an API using "aplify add api" the app fails. I'm using "expo" and I'm using IphoneX for test phase. My app code is import React, { Component } from 'react'; import { StyleSheet, Text, Button, View, Alert } from 'react-native'; import Amplify, { API } from 'aws-amplify'; import amplify from './aws-exports'; import awsmobile from './aws-exports';

React Native - KeyboardAvoidingView with Sticky Footer

泄露秘密 提交于 2020-05-27 04:30:29
问题 I'm trying to make a sticky footer with the KeyboardAvoidingView component in React Native. I'm very close to accomplishing this task, however, when they keyboard comes up, the footer is moving up but shrinking in height at the same time. Here's what it looks like before the keyboard comes up: And here's what it looks like after the keyboard comes up: As you can see, the submit container is smaller than it is before there is a keyboard. Here's my current code: render() { return (