The ReactJS version of the Ionic cross platform mobile application development framework.
Questions tagged [ionic-react]
240 questions
0
votes
1 answer
Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.ts(7017) typescript
I'm creating an input handleChange but getting an error Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.ts(7017) when trying to update the state(this.setState). here is the code snipet
const…

Alex Kamau
- 39
- 1
- 7
0
votes
1 answer
IonImg shows as broken image when i load my page
I'm using the Ionic version 5.4.16tag and i used the to display an image in my web app, but the image shows as broken image in when i load the page, why is this happening and how do I fix it; Image is attached below:
this is the code i use to…

Tochi Bedford
- 354
- 1
- 9
0
votes
1 answer
How to deploy an ionic-react app to mobile if I'm using Node.js server in the backend?
I discovered Ionic this week and I'm really considering using it at work.
My goal is to build an app that will work on Android and iOS, where the needed functionality is to connect to the cloud over web socket and pull data from the cloud and show…

basilisk
- 1,156
- 1
- 14
- 34
0
votes
1 answer
Ionic-React: Not able to customize single IonSelectOption with CSS class
I'm trying to customize a single IonSelectOption with a custom CSS class to change the color of one IonSelectOption. I am copy-pasting the code from Ionic's documentation but it still isn't working. The CSS className that I provide to the…

Matthew Goodman
- 1
- 1
0
votes
2 answers
Ionic React trying to implement a filtering search bar to filter pre made lists by their title
I have been struggling on how to create a search bar in my Ionic application. As when I try to find out how to create a search bar I only find examples of Angular with Ionic and the React example on the Ionic docs does not help unfortunately. Also…

Jake Phelan
- 3
- 1
- 3
0
votes
2 answers
Ionic React - Navigate to a page when an FCM notification is tapped
I am implementing FCM notifications in an Ionic React application. I am having trouble navigating to another page to display the notification details.
I have created a FCMService class in my react App, and initialising this in the index.ts file.
//…

Dawood Awan
- 7,051
- 10
- 56
- 119
0
votes
1 answer
Return an array of object in a ionic reactjs component
I have this component that is called in my main file, this component displays all the data, the data returns an array
import React, { Component } from 'react';
import {
IonRow,
IonCol
} from '@ionic/react';
…

nyx97
- 179
- 1
- 13
0
votes
1 answer
Ionic react component no rerendering upon (Hooks) state change if the component redirected from /
I am building an Android Ionic React app, I have hit rock bottom with an issue below even after tried multiple solutions online, apologies for the long post. The source hosted in https://stackblitz.com/edit/ionic-react-tabs-gvcbpq
I have a Main…

Panch
- 1,097
- 3
- 12
- 43
0
votes
0 answers
Hide IonMenu from login and registrationpage
there I'm building an app with Ionic and react and firebase as a backend. I'm trying to hide the side menu (IonMenu) from the login and registration page.
I'm kind of new to programming so I'm kind of lost. Can someone put me in the right…

Matrix Goblin
- 23
- 4
0
votes
1 answer
Get parameters from a useState in Ionic React
I'm trying to retrieve some data from a json to use later in a chart.
My issue is that using useState, it gets me a never type data, so I can't access fields.
const [myData, setData] = useState([]);
const url = 'url';
axios.get(url)
…

TheZekel97
- 3
- 3
0
votes
1 answer
Initialize OneSignal SDK on Ionic with React.js
I'm trying to start with OneSignal SDK on a Ionic with React app, but I can't find any guide for React, all I find is for angular and I'm not pratice of typescript.
Where do I need to initialize OneSignal SDK?
I'm trying to do it in the…

Antonello Gatto
- 1,603
- 2
- 16
- 29
0
votes
0 answers
ionic react native->js communication
I'm a native Android/iOS dev new to ionic capacitor and javascript in general. I'm trying to send data from Android's OnNewIntent callback to the ionic-react project I'm working on. I'm doing this in the native MainActivity.java that extends…

user888867
- 540
- 5
- 16
0
votes
1 answer
IonSearchbar inputmode="search" not working on iPhone
I even tried embedding it with tag, but still keypad in iPhone shows Return instead of Search.
Also how to get keyboard search click event?

Praful Kadam
- 372
- 6
- 22
0
votes
1 answer
Ionic React how to use css properties
I'm new to IonicReact and I don't know how to use css properties to that component.
For instance I'm using IonItem component but it not works
...
It has default padding and highlight…

Jin
- 924
- 1
- 9
- 34
0
votes
2 answers
Assign return value of promise to an external variable in react
I hope your are healthy and well.
I am developing a simple mobile application using ionic and react. I am using sql database and for this purpose I created Api's for user registration and login. Whenever a user login, app stores user session using…

Awais Khalid
- 86
- 1
- 8