react-native-ios

Xcode throws 'atomic_notify_one<unsigned long>' is unavailable

拟墨画扇 提交于 2021-02-19 08:59:49
问题 I installed Xcode 12 on my Mac, tried building my react native app that runs perfectly on android, and get 'atomic_notify_one<unsigned long>' is unavailable . This is the most information I get from the error. 回答1: This error was an error from flipper. Flipper threw several more less descriptive errors that I had to comment it on my podfile. After commenting, this error stopped. 来源: https://stackoverflow.com/questions/66189325/xcode-throws-atomic-notify-oneunsigned-long-is-unavailable

Keyboard Language in React Native iOS?

情到浓时终转凉″ 提交于 2021-02-17 01:57:12
问题 Is there any way to know the language of the Keyboard in React-Native iOS apps? Cause I want to switch TextInput direction automatically based on current language 回答1: You can get the devide locale using: import { NativeModules } from 'react-native' const locale = NativeModules.SettingsManager.settings.AppleLocale || NativeModules.SettingsManager.settings.AppleLanguages[0] It should produce something like: "fr_FR" The keyboard language itself, i didn't found anything until now. Edit You can

How to change TextInput cursor position in React Native?

点点圈 提交于 2021-02-11 13:34:28
问题 I am trying to achieve this behaviour in React Native: The user type for example 5 then ".000" will be added automatically to the TextInput , but the user can add an other number for example 7, the final result should look like "57.000". I tried to find a workaround but calculating the length of value and add chars accordingly but it didn't work as expected. Then I found the selection props of the TextInput . Here is my take on this: I added this to state selection: { start: 0, end: 0 } Here

React Native Reusable Card Component won't Visualize as expected

本小妞迷上赌 提交于 2021-02-10 14:47:30
问题 Hello there I'm new to react native. I'm trying to create reusable component, not only card component, maybe in future will create other reusable components. Below is the code example of reusable card component that I've created: Card.js import React from 'react'; import { View, StyleSheet } from 'react-native'; const Card = props => { return ( <View style={{...styles.card, ...props.style}}>{props.children}</View>);}; const styles = StyleSheet.create({ card: { shadowColor: 'black',

Ignore rest of screen when keyboard active

我只是一个虾纸丫 提交于 2021-02-08 10:12:15
问题 So i am adding the final touches to my application, and one bug that has been present for a while is when they keyboard is active, i am able to use the navigation on the upper half of the screen with the keyboard still showing Is there a simple way to dismiss all other touches on the upper half of the screen when the keyboard is active? If you could point me in the right direction that would be great. Looking for something similar to this: When keyboard active then touch screen anywhere,

pod install failed on macOS Big sur

左心房为你撑大大i 提交于 2021-02-06 15:22:14
问题 I am pretty new to macOS and recently shift to macOS from windows, I started to working on react-native app and when I try react-native run-ios it gives me below error error Could not find "Podfile.lock" at /Users/saniranimantha/Documents/Learning/albums/ios/Podfile.lock. Did you run "pod install" in iOS directory? info Found Xcode project "albums.xcodeproj" info Launching iPhone 11 (iOS 14.3) info Building (using "xcodebuild -project albums.xcodeproj -configuration Debug -scheme albums

pod install failed on macOS Big sur

早过忘川 提交于 2021-02-06 15:20:54
问题 I am pretty new to macOS and recently shift to macOS from windows, I started to working on react-native app and when I try react-native run-ios it gives me below error error Could not find "Podfile.lock" at /Users/saniranimantha/Documents/Learning/albums/ios/Podfile.lock. Did you run "pod install" in iOS directory? info Found Xcode project "albums.xcodeproj" info Launching iPhone 11 (iOS 14.3) info Building (using "xcodebuild -project albums.xcodeproj -configuration Debug -scheme albums

pod install failed on macOS Big sur

眉间皱痕 提交于 2021-02-06 15:20:31
问题 I am pretty new to macOS and recently shift to macOS from windows, I started to working on react-native app and when I try react-native run-ios it gives me below error error Could not find "Podfile.lock" at /Users/saniranimantha/Documents/Learning/albums/ios/Podfile.lock. Did you run "pod install" in iOS directory? info Found Xcode project "albums.xcodeproj" info Launching iPhone 11 (iOS 14.3) info Building (using "xcodebuild -project albums.xcodeproj -configuration Debug -scheme albums

Fast-Refresh Not Working after “Integration with Existing Apps”

[亡魂溺海] 提交于 2021-01-29 17:42:30
问题 I've spent a considerable amount of time integrating react native into my existing IOS and android apps. And, it's working just fine. However, the fast refresh feature is not working at all. However, fast refresh works just fine if I start a new project with react-native init . Can anyone shed some light on the following: How does the fast refresh feature work? (I know watchman is involved, but I believe that something is not telling my app when watchman detects a change in the JS) Where I

RNFirebase core module was not found natively on iOS

有些话、适合烂在心里 提交于 2021-01-29 10:46:43
问题 AppDelegate.m #import "Firebase.h" #import "AppDelegate.h" #import <React/RCTBundleURLProvider.h> #import <React/RCTRootView.h> @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [FIRApp configure]; NSURL *jsCodeLocation; jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL