react-native-ios

IOS release build crashes: TypeError: n.render is not a function. (In 'n.render()', 'n.render' is undefined) React Native 0.56

天涯浪子 提交于 2021-01-29 10:11:34
问题 I have recently upgraded to react native 0.56 . I have been getting a lot of errors but I have fixed most of it. But now When I try to run the app in release mode I get this js error . 2019-05-01 11:45:00.625 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: TypeError: n.render is not a function. (In 'n.render()', 'n.render' is undefined) This error is located at: in n dyld_image_header_containing_address(0x10ba6d27d) dladdr(0x10fcc329b, 0x7f823a8ad560) dladdr

How to encode image (asset) and via photo picker to base64 in React Native (iOS)?

落爺英雄遲暮 提交于 2021-01-29 06:10:56
问题 I've been struggling to find a supported solution to encode images (from assets) and photo picker to base64string. I can do this via Swift in a straight native app. func convertImageTobase64(format: ImageFormat, image:UIImage) -> String? { var imageData: Data? switch format { case .png: imageData = image.pngData() case .jpeg(let compression): imageData = image.jpegData(compressionQuality: compression) } return imageData?.base64EncodedString() } var mylogo: UIImage? = UIImage.init(named: "DFU

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted

只谈情不闲聊 提交于 2021-01-29 05:47:56
问题 I'm trying to add a new app to the app store. After few days from submitting the app bundle I got this issue message Dear Developer, We identified one or more issues with a recent delivery for your app. Please correct the following issues, then upload again. ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview). I searched for a

undefined is not an object (evaluating '_this.props.date.getFullYear')

隐身守侯 提交于 2021-01-29 03:26:56
问题 I encountered a error like this : and these are my code export default class StarView extends Component{ static propTypes = { date : React.PropTypes.instanceOf(Date) } constructor(props){ super(props); this.state = { selectedYear: this.props.date.getFullYear(), selectedMonth: this.props.date.getMonth(), selectedDate: this.props.date.getDate(), yesterdayYear : new Date(this.props.date.getTime() - 24 * 3600 * 1000).getFullYear(), yesterdayMonth: new Date(this.props.date.getTime() - 24 * 3600 *

undefined is not an object (evaluating '_this.props.date.getFullYear')

Deadly 提交于 2021-01-29 03:18:11
问题 I encountered a error like this : and these are my code export default class StarView extends Component{ static propTypes = { date : React.PropTypes.instanceOf(Date) } constructor(props){ super(props); this.state = { selectedYear: this.props.date.getFullYear(), selectedMonth: this.props.date.getMonth(), selectedDate: this.props.date.getDate(), yesterdayYear : new Date(this.props.date.getTime() - 24 * 3600 * 1000).getFullYear(), yesterdayMonth: new Date(this.props.date.getTime() - 24 * 3600 *

Change Language as a user preferance in React Native App

给你一囗甜甜゛ 提交于 2021-01-28 08:11:47
问题 I am creating an app using React Native and need the ability to change the app's language "on the fly" so to speak. I have followed the sample here: https://github.com/appfoundry/react-native-multi-language-sample. After following this I have successfully setup Redux and all of the accompanying libraries. The issue I'm having is that I'm trying to trigger my action from an alert popup not a picker and I'm having issues actually dispatching the action. If anyone can show me how to change the

Why does command 'react-native run-ios' build fail after upgrade to 0.63.3?

安稳与你 提交于 2021-01-28 04:42:26
问题 I just updated to RN v0.63.3. I was having issues with react-native run-ios on previous react-native version after changing the name of the app, and the project/schemes had different names, never got that issue solved, everyone said to just upgrade. now on v0.63.3 there is still an issue with failing build after react-native run-ios . this time the error is: ** BUILD FAILED ** The following build commands failed: CompileC /Users/vorousjames/Library/Developer/Xcode/DerivedData/<OLD_NAME>

Error: EMFILE: too many open files - React Native CLI

二次信任 提交于 2021-01-26 03:32:05
问题 I try to run a react-native-cli project using react-native start, and the metro bundler fails, saying the following: events.js 187 throw er; //Unhandled 'error' event Error: EMFILE: too many open files, watch Emitted 'error' event on NodeWatcher isntance at: at NodeWatcher: checkedEmitError (.../react-native-project/node_modules/sane/src/node_watcher.js:143:12) at FSWatcher.emit (events.js:210:5) at FSEvent.FSWatcher:_handle onchange (internal/fs/watchers.js:129:12) { errno: -24, syscall:

React Native Open settings through Linking.openURL in IOS

泄露秘密 提交于 2021-01-20 18:15:00
问题 I want to open ios setting app from my app. the settings destination is [ settings => notification => myapp ]. to turn on & turn off push notification. There are some documents about how to link to settings, but I don't know how to open deep link. (notification => myapp). How can I do this? 回答1: You can deep-link referencing the settings's index like so: Linking.openURL('app-settings:') Above method only for IOS 回答2: Since React Native 0.60 to open App settings use: Linking.openSettings() 回答3

React Native Open settings through Linking.openURL in IOS

一个人想着一个人 提交于 2021-01-20 18:12:42
问题 I want to open ios setting app from my app. the settings destination is [ settings => notification => myapp ]. to turn on & turn off push notification. There are some documents about how to link to settings, but I don't know how to open deep link. (notification => myapp). How can I do this? 回答1: You can deep-link referencing the settings's index like so: Linking.openURL('app-settings:') Above method only for IOS 回答2: Since React Native 0.60 to open App settings use: Linking.openSettings() 回答3