mobile-development

Unable to resolve “@react-navigation/native” from “App.js” - React Native + How to Solve?

时光怂恿深爱的人放手 提交于 2020-08-02 12:24:21
问题 undefined Unable to resolve module @react-navigation/native from App.js : @react-navigation/native could not be found within the project. If you are sure the module exists, try these steps: 1. Clear watchman watches: watchman watch-del-all 2. Delete node_modules: rm -rf node_modules and run yarn install 3. Reset Metro's cache: yarn start --reset-cache 4. Remove the cache: rm -rf /tmp/metro-* - node_modules\react-native\Libraries\Utilities\HMRClient.js:307:41 in showCompileError - node_modules

Can I install Xcode on an external hard drive along with the iPhone Simulator.app?

早过忘川 提交于 2020-06-24 07:53:06
问题 I want to install xcode to deploy a cross platform flutter application but I cant find enough space for Xcode is there any alternative solutions to just installing it on the internal storage 回答1: Installing Xcode and friends to an external drive As mentioned in the comments, if you already have Xcode installed the process is quite simple. Start by moving Xcode from the Internal HD to an External one and run the commands from step 4 & 5, and this should do the trick. My experience is that if

Can I install Xcode on an external hard drive along with the iPhone Simulator.app?

佐手、 提交于 2020-06-24 07:53:03
问题 I want to install xcode to deploy a cross platform flutter application but I cant find enough space for Xcode is there any alternative solutions to just installing it on the internal storage 回答1: Installing Xcode and friends to an external drive As mentioned in the comments, if you already have Xcode installed the process is quite simple. Start by moving Xcode from the Internal HD to an External one and run the commands from step 4 & 5, and this should do the trick. My experience is that if

Not able to access the data from firebase using StreamBuilder in flutter

时光总嘲笑我的痴心妄想 提交于 2020-03-05 03:13:42
问题 Here I am trying to get the data from the firebase database using firstore instance in streamBuilder . .collection('/message_data/friendA##friendB/message_list') :-this is my collection-document path from firebase No error, just a blank page. @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.friendName), ), body: Column( children: <Widget>[ Flexible( child: StreamBuilder( stream: Firestore.instance .collection('/message_data/friendA##friendB

How to change image and text color when clicking using react-native?

橙三吉。 提交于 2020-01-01 08:07:20
问题 I am using TouchableHighlight, but I can change only background color using underlayColor. But how to change other content? 回答1: 'use strict'; var React = require('react-native'); var { AppRegistry, StyleSheet, Text, View, TouchableHighlight } = React; var colors = ['#ddd', '#efefef', 'red', '#666', 'rgba(0,0,0,.1)', '#ededed']; var backgroundcolors = ['green', 'black', 'orange', 'blue', 'purple', 'pink']; var SampleApp = React.createClass({ getInitialState() { return { color: 'orange',

Error: Your cpu does not support required features(vt-x or svm)

谁说胖子不能爱 提交于 2019-12-23 08:29:35
问题 I keep getting the error noted above when I try to run a virtual device. My CPU does support virtualisation and it is enabled. I have ran a virtual device on eclipse before but, for some reason, Android Studio is giving me a hard time. My CPU is an AMD FX 6350 six core processor 3.90 Ghz running Windows 10. 回答1: I had the same problem. Android Studio emulator won't run on Windows with an AMD processor. The error message is kind of misleading, as it suggests the problem is with the CPU. But it

How to make swipe function on listview (react-native)?

早过忘川 提交于 2019-12-22 11:20:27
问题 I have list of items. I am using ListView for it and I need to be able to delete any row by swiping left or right. Where can I start from here? 回答1: If you prefer, follow this guide which uses React Native Swipeout. Otherwise, here's my SwipeList and SwipeListRow component. I partially use my library Cairn for styling, but it should be easily translated into a normal React Stylesheet if you care to do so: SwipeList.js import React from 'react'; import { Text, ListView } from 'react-native';

Is it possible to mix OnIdiom and OnPlatform in XAML (Xamarin.Forms)?

北慕城南 提交于 2019-12-18 13:04:24
问题 For UWP I need a different size for the width of a column in a Grid . Additionally, the value should be different on tablet and on smartphone. The following code crashes the app <ColumnDefinition> <ColumnDefinition.Width> <OnIdiom.Phone> <OnPlatform x:TypeArguments="GridLength" iOS="*" Android="*" WinPhone="100" /> </OnIdiom.Phone> <OnIdiom.Tablet> <OnPlatform x:TypeArguments="GridLength" iOS="*" Android="*" WinPhone="200" /> </OnIdiom.Tablet> </ColumnDefinition.Width> </ColumnDefinition>