Questions tagged [expo]

1

votes
3

answer
43

Views

The component for route must be a React component

The component for route 'Feed' must be a React component. I've checked most of the other similar questions here but the majority of them are due to basic syntax (which maybe I have too but am blind to!). I've removed chunks of code that aren't relevant to this issue (navigationOptions and other scre...
illya
1

votes
1

answer
232

Views

React Native Bullet Character?

I want to use Bullet Character/ Small Circles used for passwords in React Native Text component. Is there a way to create them without using package. I am thinking of creating a rounded View with background filled. However, kindly let know if a simpler solution exists.
Rusty
0

votes
2

answer
69

Views

react native expo how to show login page instead of home page

I'm using the default tab navigation app from the react native expo What I want to do is checking if user logined, by checking asyncstorage loginname value. in the home.js, ff there is no storage loginname, redirect to sigin.js page MainTabNavigator.js import React from 'react'; import { Platform }...
angry kiwi
0

votes
0

answer
2

Views

Is there a way to get the height of the vertical scroll bar indicator (FlatList)?

I am looking to get the height of vertical scroll bar indicator for FlatList. Right now I am doing some rough calculations to estimate what the height would be based off of the window height and the heights of the contents of the list being rendered, but it seems to be not accurate enough. Is there...
Sanat Shah
1

votes
1

answer
1.3k

Views

Is it possible to download an audio file and play it using React Native Expo?

I have audio files hosted on a server that I'd like my app to access after authenticating. Users send a GET request which includes an authentication token, and the server returns the binary audio data. As far as I can see there is no way to save this 'blob' as an audio file to the filesystem. The cu...
Tom
1

votes
3

answer
2.3k

Views

unable to resolve module `@expo/vector-icons`

Im not sure why I'm getting this error: Unable to resolve module `@expo/vector-icons` from `...(directory path here)...` : Module does not exist in the module pack I have tried the following things suggested on other forums/sites: Clear watchman watches Deleting the node_modules folder Reset package...
Gurmukh Singh
1

votes
2

answer
1k

Views

Cannot access State inside Function

I am using React Native for my application, and at one point, I noticed that I have to type this.state.bar[this.state.foo][SOME_NUMBER] every time, within my components. This works perfectly fine, but I want to make my code cleaner by calling a function instead. So, I constructed this: function tx...
Mrigank Pawagi
2

votes
3

answer
579

Views

How to fix '_react[“default”].memo is not a function. (In '_react[“default”].memo(connectFunction)' error in React native?

I am trying to connect Redux mapStateToProps() and mapActionCreators() to Login Screen through Container and I am using React navigation. After build my app the following error message appears: _react['default'].memo is not a function. (In '_react['defaults'].memo(connectFunction)', '_react['default...
Ahmed Saeed
1

votes
0

answer
374

Views

React Native expo there was a prob loading this experience

When i run 'exp start' from command line. my react native app builds perfectly on simulator and on device. i also ran exp start --no-dev which i assumed was to show what would run with dev mode flag off when i run exp publish. When i run 'exp publish' i get There was a problem loading this experienc...
James Woods
1

votes
0

answer
211

Views

'React/RCTRootView.h' file not found after detach from expo

I created a new project with expo and detached it. When I try to run the iOS project in XCode, it gives an error 'React/RCTRootView.h' file not found If I create a new project with react-native init instead, I'm able to build with react-native-navigation successfully. Why does it fail with expo? Ste...
Avery235
1

votes
0

answer
1k

Views

How to upload a image to firebase storage using react native and expo?

I am trying to set a profile pic and upload it to the firebase storage in my ios app using react native. I am using the following code to upload the image:- _pickImage = async () => { let result = await ImagePicker.launchImageLibraryAsync({ allowsEditing: true, aspect: [4, 3] }); this.setState({ ima...
anup
1

votes
0

answer
151

Views

In React Native, Can I bind swipe/scroll of a SectionList to another View

I have a SectionList which scrolls/swipes vertically. Can I bind a swipe gesture on it, so that it results in swiping a completely separate View which is behind it? Furthermore, is there an example someone could lead me to, in which a swipe gesture on a SectionList is bound to the animation of anoth...
Joshua Creed Gilmer
1

votes
0

answer
628

Views

can't connect anymore with expo client on ubuntu

I had been working on a react-native project for about a week on my main computer, which is Ubuntu. After having some reloading issues, I tried running on my macbook, and that has been working fine. However, I can't get my expo client to connect at all now on my Ubuntu, which is what I'm trying to s...
awwester
1

votes
0

answer
227

Views

iOS App built from Expo does not open on device

command used to build .ipa exp build:ios expo handled the certificates (distribution and push notification) device tested on AWS Device farm: iPhone 5, iOS: 10.3.2 Syslog from the device farm Jan 16 12:34:15 9902472814 SpringBoard(FrontBoard)[57] : Unable to register for exec notifications: No such...
dshn
1

votes
1

answer
356

Views

how to take screenshot of IOS phone using react-native

Is it possible to programmatically take a screenshot of the current phone view while the react-native app is in the background? The expo api for takeSnapshotAsync requires a view ref to work. I do not want to capture the actual app itself. I want to capture whatever the user is doing on their phone.
texas697
1

votes
1

answer
468

Views

attempt to write a readonly database (code 1032)

import Expo, { SQLite } from 'expo'; const db = SQLite.openDatabase('db.db'); export function create(){ db.transaction(tx => { tx.executeSql( 'CREATE TABLE if not exists material_mg (ID INT PRIMARY KEY ,order_number VARCHAR(10) ,truck_number VARCHAR(10) ,enter_mine_date TEXT ,vehicle_owner_name VAR...
Yash Sharma
1

votes
1

answer
882

Views

Sending multiple push notifications using Expo on React Native

I am trying to setup push notifications for my app. I am using the Expo push-functionality It works pretty well so far but now I want to send push notifications to multiple people. In that case Expo tells me to send the HTTP-Body like this: [{ 'to': 'ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]', 'sou...
Zander
1

votes
1

answer
444

Views

Blank screen after publish to Expo

my program was running correctly on my local machine. Why published project only shows a blank screen after it been pubilushed to the Expo server?
HE xinhao
1

votes
0

answer
60

Views

Expo Camera Focused API

I have a task to make an app with camera which makes sound when it is focused. I am using Expo Camera now, but I cannot find any possible solution to implement this. Is there any ideas how to make this?
Andrew
1

votes
0

answer
604

Views

npm/yarn module install with git: cloning repo into node_modules and installing does not work but yarn add does

I'm trying to make a contribution to an opensource project. In particular, react-native. I have a test app which I've created with create-react-native-app test if I do the following: cd test rm -rf node_modules/react-native yarn add https://github.com//react-native # (my fork) There's no issue when...
klvs
1

votes
0

answer
481

Views

Is Expo's react-native SQLite transaction a real SQL transaction?

In Expo, the react-native + extra development environment, the SQLite API in react-native uses the notion of 'transaction'. However there is no discussion of committing that transaction. Is the RN notion of transaction just a set of consecutive calls SQLite? or is it a real transaction in the SQLit...
Michel
1

votes
3

answer
919

Views

How to check if a user device is using fingerprint/face as unlock method. [ReactNative] [Expo]

I'm using ReactNative based on Expo Toolkit to develop a App and I want know how I can check if the user is using the fingerprint (TouchID on iPhone) or face detection (FaceID on iPhone X>) to unlock the device. I already know how to check if device has the required hardware using Expo SDK, as follo...
Rodrigo Tessarollo
1

votes
1

answer
727

Views

Firestore permission denied when using signInWithCredential(), React Native Expo

firebase.initializeApp(config); const db = firebase.firestore(); const googleSignIn = async () => { return await Expo.Google.logInAsync({ androidClientId, iosClientId, scopes: ['profile', 'email'], }); }; const firebaseLogin = async (accessToken) => { const cred = firebase.auth.GoogleAuthProvider.cr...
zino
1

votes
0

answer
1.3k

Views

How to use both a drawer and a tab navigator in react-navigation

I am new to react-navigation and am attempting to include both footer tab-navigation and a drawer. The app successfully loads the 'Landing' page, which is the default screen of the Drawer Navigator. However, When I am on the Deals, Favorites and Dashboard Pages, the footer navigator does not appea...
FDRH
1

votes
0

answer
1.4k

Views

Forcing refresh of a published Expo app

could somebody explain how the Expo client decides whether to refresh my app or use the current version cached (~already downloaded) in the client? When I'm pushing out a new version with exp push, the Expo app (on Android) doesn't seem to pick it up, unless I clear all data of the app. I thought th...
stvn
1

votes
0

answer
379

Views

Expo build Error: Request body larger than maxBodyLength limit

I'm attempting to build a signed APK to upload to Google Play. My app contains some JSON assets, which are 50MB in total. When I remove them, this error does not occur and my app was built successfully. So I want to try to increase maxBodyLength, but I don't know where it from and how can I change i...
Văn Quyết
1

votes
1

answer
674

Views

Expo, Firebase, Login with google

in my React Native Expo application, I want to authenticate the user with google account. so I followed the Expo Googlefor a normal sign in with google first, Which was working, then using the idToken and accessToken to authenticate with firebase. signInWithGoogleAsync = async () => { try { const re...
Amir-Mousavi
1

votes
1

answer
236

Views

React Native listen for keyboard press events

How do you globally listen for keyboard events? I have a PanResponder listening for all touch and press events but it doesn't record keyboard touches (assumingely because the keyboard is not part of my app). The React Native Keyboard Api on records show and dismiss.
Walter Shub
1

votes
0

answer
198

Views

Android Manifest `INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME`

I've created a React Native and Expo app. I've ejected the app so I could add native SDKs. The app runs fine on iOS but on Android I get the error 'INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME' Invalid manifest package: must have at least one '.' separator. when running the app from Android Studio. Here's...
James Johnson
1

votes
0

answer
312

Views

React native audio recording and google speech API

I'm using Expo's Audio library to record user speech, and sends them to Google Speech API for translation. The only format that seems to match Google speech's accepted encoding is AMR_WB. However, I am not able to find any React Native audio library to play AMR_WB files (3gp extension). Allowing bo...
Avery235
1

votes
0

answer
132

Views

Error attaching debugger with nuclide to Expo local server

I am trying to attach the Nuclide debugger to Expo local server (port 19001), but it is showing me the following error : Adapter node: v8.10.0 x64 vscode-chrome-debug-core: 3.17.10 Starting debugger app worker. ******** Unhandled error in debug adapter - Unhandled promise rejection: Error: spawn rea...
Sterling Ryan
1

votes
0

answer
495

Views

Network error React Native using Expo

I'm new using Expo to run my own react-native applications but now I got a Network error while trying to use axios (I've tried using fetch and got the same) to connect with the Indeed URL API. I've read that iPhone blocks any insecure HTTP request, unless you allow this on the info.plist file which...
Ian Steban Vasco
1

votes
0

answer
257

Views

Expo shared cookies between AuthSession and fetch

Our expo app is using AuthSession to authenticate against our site. It looks like the sessionid cookie is set on the web view that AuthSession shows, but when I go to fetch on the same origin as the login, there are no cookies present. here's what my fetch looks like: return fetch(`${baseApiUrl}/${u...
Shwiby
1

votes
0

answer
172

Views

react native import packages showing error in expo

I try to create a credit card details input using this link Then I run through expo then I got this error Unable to resolve react-native-credit-card-input' from './/App.js' but try this code also in the terminal by my app location is desktop/myapp/card npm i --save react-native-credit-card-input...
1

votes
1

answer
1k

Views

React Native version mismatch JavaScript version :0.54.3 Native version:0.50.3

to solve an other Problem I have to upgrade react native. I used `react-native-git-upgrade 0.54.3` for updating. Is there any idea to upgrade the native verion? To start my project I used create-react-native-app my package.json contains that: { 'name': '########', 'version': '0.1.0', 'private': tru...
peni4142
1

votes
1

answer
113

Views

ActivityIndicator not spinning or animated on Android

Works as expected on iOS but on Android it's just a static image. Not sure how I'm messing up something this simple! Created a brand new project in Expo as follows: export default class App extends React.Component { render() { return ( Open up App.js to start working on your app! ); } }
heyyouyayou
1

votes
0

answer
68

Views

Skip image confirmation after taking photo

I'm creating an app with react native that can take photos and always after taking a photo, the app asks if I want to accept (v) or discard (x) the photo. is there any way to skip this step? When you take the picture already 'accept' automatically. My code: _takePhoto = async () => { let pickerResu...
Mathias Falci
1

votes
0

answer
141

Views

Overlaying an effect onto text in scrollview in react native (expo)

Is it possible to overlay an image effect/text effect onto another component in react native within a scrollview? For example, given the image effect seen below in the ios wheelpicker, is it possible to replicate the same 'focused' effect in a scrollview in react native such that the center items a...
Alwyn Tan
1

votes
1

answer
157

Views

Monorepo with Expo and Multiple Entry Points

I have two Expo (React Native) apps that share most of their code and are already in production. We are trying to move them to a monorepo directory structure as follows: lerna.json package.json packages/ mobile-1/ app.json index.js package.json mobile-2/ app.json index.js package.json mobile-common/...
Sebastian Garrido
1

votes
0

answer
43

Views

not a system font error, might be related to async?

So I got the 'Roboto-Black' is not a system font, try putting through Expo.Font.loadAsync() error. but I've read in other posts that some people are having similar problems and the solution is by using await/promise. However, Im not sure how to do that with my code since I'm just following a tutoria...
Ray Jonathan

View additional questions