Hello, I am newbie and start learning Android mobile programming using react native.. I encounter a problem using setState state, it's keep show an error : **"Can't find variable : setState"** import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, } from 'react-native'; export default class WeatherProject extends Component { constructor(props) { super (props) this.state={appendText:'crazy!'}; } render () { return ( <View> <Text onPress={() => setState({text: ' Native'})}>{this. props.setState +" "+ this.state.appendText}</Text> </View> ); } } AppRegistry.registerComponent('WeatherProject', () => WeatherProject); Could someone pointed where is the problem in the code?

Member Avatar
Member Avatar
+1 forum 1

When posting code, I get error > begin a line with 4 spaces in a row (or one tab), preceded by a blank line. 4+ spaces or tabs may not be used anywhere else.

Member Avatar
Member Avatar
+0 forum 7

Last week a group of six 'm-commerce' experts took part in a round robin discussion in Manchester, England to determine the best ways forward for developers interested in creating a serious mobile web presence yet wanting to make money through the medium of mobile advertising at the same time. Anyone who has been involved in this particular area of Internet growth will appreciate just what a serious challenge the mobile web presents to those who have not invested, in thought and deed as much as financially, in getting to grips with a realistic m-commerce marketing strategy. Unless you are creative …

Member Avatar
Member Avatar
+0 forum 5

Why do I always get the default filter of recommended every time I open dw? I am quite capable of decidling if I want a filter or not. How can I turn it off?

Member Avatar
Member Avatar
+1 forum 1

Hello i want to make a video player with HTML5. I t has to have other angular tags and an object inside the <video> tag. The source code below explkains what i want to do. Is it possible? Any suggestions? <video controls preload="metadata" style="width:100%; height:100%;z-index: 100"> <source src="//vjs.zencdn.net/v/oceans.webm" type="video/webm" /> <source src="//vjs.zencdn.net/v/oceans.mp4" type="video/mp4" /> <source src="//vjs.zencdn.net/v/oceans.ogg" type="video/ogg" /> <ion-card-content> <ion-item (click)="goUser(media.uid_fk)"> <ion-avatar item-start > <img src="{{media.profile_pic}}"> </ion-avatar> <h2>{{media.username}}</h2> <p>{{media.bio}}</p> </ion-item> <ion-item> <h2 style="color:#fff" (click)="goMedia(media)">{{media.title}}</h2> <p>{{media.description}}</p> </ion-item> </ion-card-content> </video> p.s. it shows the video but not the other inside of it, tags like h2, p ion-item

Member Avatar
+0 forum 0

I want to pass a value (0 or 1) to another page so i can make an ng if to return a different button. Any help? do i need to pass a parameter from .ts file? first page.html <button ion-tem (click)="goUsers()" *ngIf="editors.length == 0" value="0"> <ion-label> Add editors </ion-label> </button> <button ion-tem (click)="goUsers()" *ngIf="editors.length > 0" value="1"> <ion-label> Add more editors </ion-label> </button> second page.html <button ion-button item-end clear *ngIf="value === '0'"> (click)="addEditor(item)"> Add as Editor </button> <button ion-button item-end clear *ngIf="value ==='1'"> (click)="deleteEditor(item)"> Already an Editor </button>

Member Avatar
Member Avatar
+0 forum 3

Hello i want to create a script that allows the user to use the device mic and record audio, then display it using Typescript (.ts) file. Here is what i have so far. home.ts import { Component, ViewChild } from "@angular/core"; import { NavController, App, AlertController, Platform } from "ionic-angular"; import { Common } from "../../providers/common"; import { Media, MediaObject } from '@ionic-native/media'; import { File } from '@ionic-native/file'; @Component({ selector: "page-home", templateUrl: "home.html" }) export class HomePage { recording: boolean = false; filePath: string; fileName: string; audio: MediaObject; audioList: any[] = []; getAudioList() { if (localStorage.getItem("audiolist")) { this.audioList = …

Member Avatar
Member Avatar
+0 forum 1

Good Day All i have a ListView that is defined in a Xamarin Form. i want this ListView to be updated with the Data from the DB every 5 seconds. In a Non Mobile environment , we have a Windows Service , which is a long running Service. but now i search i came across a Service. but now i see this is implemented differently on each platform. Most examples i get are examples where one is binding the Control in Android Project. WhatUp if my Data binding is done in Xamarin Form (Standard Class) . 1) Can i kindly …

Member Avatar
+0 forum 0

Hello i am using authservice to call my MySql database with PHP api and therefore my php functions for my Ionic 3 Angular 4 app. This is how i call to get userData and it works fine import { AuthService } from "../../providers/auth-service"; public authService: AuthService, private loadingCtrl: LoadingController ) { const data = JSON.parse(localStorage.getItem("userData")); this.userDetails = data.userData; this.userPostData.uid = this.userDetails.uid; let loader = this.loadingCtrl.create({ content: 'Please wait...' }); I have another project that uses AngularFirestone import { AngularFirestore, AngularFirestoreDocument } from 'angularfire2/firestore'; import { AngularFireAuth } from 'angularfire2/auth'; import { Storage } from '@ionic/storage'; and calls the constructor like …

Member Avatar
Member Avatar
+0 forum 1

Hello i want to add fa fa-users (the users icon from font awesome) but when i do <i class="fa fa-users" aria-hidden="true"></i> i am not getting the icon, html displays the code of the font-f0c0 that is. Any guess why? p.s. i am using other fonts just fine e.g. contact, search and so on

Member Avatar
Member Avatar
+1 forum 3

Hello i want to create an app -not native- to work with iOS, Android, and Windows. I am working with Ionic Framework to do that. A programmer told that i should use CodeIgniter because i am good with PHP. Whats your opinion about Ionic and CodeIgniter?

Member Avatar
Member Avatar
+0 forum 6

Hello I'm try to use a hardware to create key for encryption in mobile devices( in a model at first) this is my question: can i get my keys from TPM? If is it possible, how can i do it?

Member Avatar
Member Avatar
+0 forum 4

I have a web app already running on the web. It is web responsive. I want to make update of it. I hear good things about Ionic and i started working on Ionic 3 with Angular. Its almost finished. Now i need help to sinish and publish it. I wanna ask these questions. Do you think Ionic would make a difference or i just should updated my existing web app? Is it better to use native apps/Hydrid or Web apps? Thanks

Member Avatar
Member Avatar
+0 forum 3

Does all .apk files can be decompiled no matter on how they are protected and secured, and recompile back in apk file? I have an apk file which i need the source code to change something a little bit. I tried using [javadecompilers](http://www.javadecompilers.com) but i did not get the main files with code i need. Is there any alternative to this site or is there any possible way of achiving this? Thank you.

Member Avatar
Member Avatar
+0 forum 4

I have a code that picks contacts, the problem is that if a user pick a contact or choose a contact that was not saved on a phone but was saved on google contacts (This is a way many people now save their contacts so that should their phones are lost but contacts are ever lost because when s/he gets a new phone, s/he will just sign in with google account and get his/her contacts) now my app is able to get the name and return it to an EditText but the number/phone number is not returned in these contacts. …

Member Avatar
Member Avatar
+0 forum 6

Hi, I am an absolute beginner to Xamarin and just started to develop a small application wherein, I am not getting any idea about why the BindableProperty changes are not getting reflected inside the view model. Presently, I have written my BindableProperty in a separate Class and the code is as follows: public static readonly BindableProperty IsValidEntryProperty = BindableProperty.Create("IsValidEntry", typeof(bool), typeof(MaxLengthValidatorBehavior), false, BindingMode.TwoWay); public bool IsValidEntry { get { return (bool)GetValue(IsValidEntryProperty); } set { SetValue(IsValidEntryProperty, value); } } protected override void OnAttachedTo(Entry bindable) { bindable.TextChanged += HandleTextChanged; base.OnAttachedTo(bindable); } void HandleTextChanged(object sender, TextChangedEventArgs e) { IsValidEntry = false; IsValidEntry = …

Member Avatar
Member Avatar
+0 forum 2

Hello i have a Ionic Angular project. I haven't changed any of my files and i am getting an error `data is null` after `ionic serve` That means that i can't connect to my database. I havent made any changes on the database or change any of my files. Any help?

Member Avatar
Member Avatar
+0 forum 13

The End.