react-native-ios

Sometimes console.log shows in log-ios sometimes it doesn't

試著忘記壹切 提交于 2019-11-29 20:04:18
问题 I have run react-native start in one terminal, and then react-native ios-run in another. My initial console.log rarely show, sometimes they do. Lot's of times, randomly I do see: LOG MESSAGE QUOTA EXCEEDED - SOME MESSAGES FROM THIS PROCESS HAVE BEEN DISCARDED Are my console.log 's being discarded? I tried clearing the console to see it more clearly but I can't find a way to clear console either. On Android, I wouldn't have issue with missing console.log . 回答1: react-native logs information

`react-native run-ios` returns Error: Could not find iPhone X simulator

六眼飞鱼酱① 提交于 2019-11-29 19:31:17
whenever I run react-native run-ios , I get Could not find iPhone X simulator Error: Could not find iPhone X simulator at resolve (calendarPractice/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13) at new Promise (<anonymous>) at runOnSimulator (calendarPractice/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10) at Object.runIOS [as func] (calendarPractice/node_modules/react-native/local-cli/runIOS/runIOS.js:106:12) at Promise.resolve.then (calendarPractice/node_modules/react-native/local-cli/cliEntry.js:117:22) however, when I run on Xcode, it works fine { "devicetypes" :

DeviceInfo native module is not installed correctly

为君一笑 提交于 2019-11-29 16:37:19
问题 So I tried implementing Facebook Login and followed all the steps accordingly. After having errors with FBSDKcorekit/FBSDKcorekit.h' file not found , I decided to pivot over to working on other components. Lo' and behold, I have this error giving me trouble now. I followed along with this video: https://www.youtube.com/watch?v=rAXVKapP5cM&t=458s where I used the react-native install react-native-fbsdk and react-native link react-native-fbsdk commands in my terminal. If it helps, I'm getting

How can I regenerate ios folder in React Native project?

倾然丶 夕夏残阳落幕 提交于 2019-11-28 17:23:45
So a while ago I deleted the /ios directory in my react native app (let's call it X). I've been developing and testing using the android emulator but now I'd like to make sure it works on ios with xcode simulator etc. So my current idea is to create a new react native bare project (let's call it Y) with ios folder, then follow these steps to rename Y so that it has the name of X and then moving the /ios directory from Y into X and trying to run-ios . I'll update here how that goes, but I wondered if there is a better way and has nobody been in this situation before? I've googled lots of things

How to generate .ipa file for react-native?

我与影子孤独终老i 提交于 2019-11-28 13:02:54
I am currently using React-Native version 0.40.0. Can somebody give me a link on the process and steps on how to generate an .ipa file for ios?? I'm currently new to react-native. Btw I'm using version 8 of Xcode Try Following react-native bundle --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --platform ios Get .app file : Run this command -> react-native run-ios --configuration=release Convert .app to .ipa : Create folder Payload. paste .app file into Payload folder. compress the Payload folder. change the name you want and put extension as .ipa. 来源: https:/

entry point for packager

十年热恋 提交于 2019-11-28 10:02:07
问题 I'm just starting out with react native. Everything was going ok but now when I run 'react-native run-ios' the packager is looking for js files in <project-root>/node_modules/react-native/packager instead of <project-root> If I run 'node node_modules/react-native/local-cli/cli.js start' it looks for files in the correct location. This is happening in my existing project and if I create a new project using react native init. It started after I installed a new npm module. I've since reverted

componentWillMount is deprecated and will be removed in the next major version 0.54.0 in React Native

一世执手 提交于 2019-11-28 09:02:02
I use the react native latest version of 0.54.0 and Whenever run the apps on iOS there is found warning about deprecate the lifecycle methods. and also please update the components. Warning : componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount. Please update the following components: Container, Text, TouchableOpacity, Transitioner, View I Have also change according to the waring add prefix UNSAFE_ each of the method. UNSAFE_componentDidMount() { } UNSAFE

How to build .ipa application for react-native-ios?

☆樱花仙子☆ 提交于 2019-11-27 18:50:20
I would try " How to generate .ipa file for react-native? " But I'cant get .ipa file. Any one cloud you explain how to get .ipa file . Saravana Kumar How to build .ipa application for react-native-ios : Get ".app" file : Command : react-native run-ios --configuration=release ".app" file path : Build/Products/Release/"<Your_Filename>.app" Convert .app to .ipa : a. Create folder Payload. b. paste .app file into Payload folder. c. compress the Payload folder. d. change the name you want and put extension as .ipa . You can run these commands in the ios directory. xcodebuild clean archive -scheme

`React/RCTBridgeModule.h` file not found

北城余情 提交于 2019-11-27 18:04:21
Getting this error while building a react-native iOS app on xcode. Started getting this error after npm install and rpm linking react-native-fs library. But after searching online for a solution, I noticed that many people are getting the same error while installing other react native libraries. A possible solution suggested by many is, Adding the following under "Build Settings" -> "Header Search Paths". $(SRCROOT)/../node_modules/react-native/React - (Recursive) But no luck with this solution, still getting the same error Zanyinj In my case this particular problem happened when I was trying

Checked - Unchecked doesn't working in ListView - React Native

梦想的初衷 提交于 2019-11-27 07:31:10
问题 friend I Will integrated checked - unchecked in listView. So that When user click on checked then store the data in Array and unchecked then i will remove the data. Its working fine, But the UI Will not updated after checked - unchecked. <List containerStyle={{marginTop : 0 , borderBottomWidth : 0 , borderBottomColor : 'black', borderTopWidth : 0}}> <FlatList data={this.state.list} renderItem={({ item }) => ( <ListItem containerStyle={{height: 80, backgroundColor : 'transparent',