expo

How to display items on screen using search textinput (expo, react-native)

安稳与你 提交于 2020-06-17 15:51:15
问题 I am using react native and expo. I have some JSON data on the screen (iOS) simulator that was fetched from API. At the top, I have a search bar where users can search the data that is displayed on the screen. For example, if the data is A a company B bcompany A is a company symbol and a company is a symbol name. So when user types A it should display A company and if user type Z it should display Z company. My code: import React, { useState, useEffect } from "react"; import { StyleSheet,

How to display items on screen using search textinput (expo, react-native)

随声附和 提交于 2020-06-17 15:51:14
问题 I am using react native and expo. I have some JSON data on the screen (iOS) simulator that was fetched from API. At the top, I have a search bar where users can search the data that is displayed on the screen. For example, if the data is A a company B bcompany A is a company symbol and a company is a symbol name. So when user types A it should display A company and if user type Z it should display Z company. My code: import React, { useState, useEffect } from "react"; import { StyleSheet,

Expo Permission PHONE_CALL

南楼画角 提交于 2020-06-17 09:31:45
问题 Hi i am trying to create a react native with expo app the main app's function is call users in an automatic way but we are not able to request PHONE_CALL permission using expo! what is the best way to call any Android permission? The app is only Android but we don´t know how to request this permission! Thanks for your help! 回答1: You can use Linking.openURL for this: Linking.openURL('tel:123456789'); Here is an example of it in action: https://snack.expo.io/@notbrent/ashamed-churros import *

Getting “Invalid call” when using require with Typescript and Expo

我怕爱的太早我们不能终老 提交于 2020-06-17 02:36:49
问题 I am trying to play some audio in a react-native app created with the expo-cli. The code is written in typescript and the offending code looks like this, taken from the expo.io documentation: import * as React from 'react' import { WorkoutComponent } from "./WorkoutExecutor"; import { Audio } from 'expo'; export default class AudioPlayer { private async playAudio(fileName: string) { console.log("Playing Audio: " + fileName); const soundFile = './assets/sounds/' + fileName + '.mp3'; try {

Expo Tunnel not starting

ε祈祈猫儿з 提交于 2020-06-16 20:48:43
问题 I'm new to react native and I'm trying to start my react-native application using expo. But the tunnel option is not starting, it's displaying the Tunnel URL not found, falled back to LAN URL. When I click to the tunnel tab, because it's not yet started. I waited for 2 hrs for it to start but it won't start. I run through different issues and questions asked but none solved my issue. ENV: "expo": 36.0.0, "expo-cli": 3.11.7 Does anyone know how I can solve this? 回答1: Try expo-cli start -

differences between create-react-native-app and exp init

ⅰ亾dé卋堺 提交于 2020-06-16 03:04:11
问题 I found that create-react-native-app is based on expo. but when using exp-cli, it is also based on Expo. what are differences between create-react-native-app and exp init ? 回答1: Answer to this question is well documented in expo documentation Expo & "Create React Native App" Create React Native App lets you build a React Native app without any build configuration. This may sound familiar to you because Expo does this as well -- when you create a project with XDE or exp you don't have to deal

Local Schedule Notification react native

白昼怎懂夜的黑 提交于 2020-06-15 18:45:31
问题 I am new to React Native i'm trying to implement a functionality where the app sends to user everyday at a certain period of dates and times a notifications to remind users to take pills ( times and dates and data are stored in mongodb server so i'll be using axios to fetch them ) can notifications still works if app is closed or in the background ? is it easy to make it work ? Does anyone know of a way to achieve this , is it possible ? thanks 回答1: Yes!!! This is possible. You have many

Local Schedule Notification react native

不问归期 提交于 2020-06-15 18:34:45
问题 I am new to React Native i'm trying to implement a functionality where the app sends to user everyday at a certain period of dates and times a notifications to remind users to take pills ( times and dates and data are stored in mongodb server so i'll be using axios to fetch them ) can notifications still works if app is closed or in the background ? is it easy to make it work ? Does anyone know of a way to achieve this , is it possible ? thanks 回答1: Yes!!! This is possible. You have many

How to redirect to another page when user click on json data on screen and pass symbol value to another class

耗尽温柔 提交于 2020-06-13 11:30:04
问题 I am using react native and expo. I have some json data on the screen (similator iOS) such as A Acompany B Bcompany here A is symbol and Acompany is name When user click on it it should redirect to another screen such as (Stock.js) and pass the symbol as well? How can I redirect it to another screen when user click on it and send this data ( symbol )? My code: import React, { useState, useEffect } from "react"; import { StyleSheet, View, TouchableWithoutFeedback, Keyboard, FlatList, TextInput

How do fix the white keyboard space that shows whenever I use KeyboardAwareView or react-native-keyboard-aware-scroll-view in my Expo react-native?

狂风中的少年 提交于 2020-06-13 06:28:43
问题 I am using Expo - react-native in creating an app, but using KeyboardAvoidingView and other Keyboard Packages (react-native-keyboard-aware-scroll-view) show white spaces at the bottom of the screen. How do I fix this? (https://i.stack.imgur.com/1c0M6.jpg) have tried KeyboardAvoidingView and react-native-keyboard-aware-scroll-view but the problem still persist import React, {Component} from 'react'; import {StyleSheet, ScrollView, Text,ActivityIndicator, TouchableOpacity, TextInput, View,