Questions tagged [exponentjs]
The exponentjs tag has no usage guidance, but it has a tag wiki.
exponentjs
27
questions
351
votes
12
answers
183k
views
What is the difference between Expo and React Native?
From the Expo website
Expo lets web developers build truly native apps that work across both iOS and Android by writing them once in just JavaScript.
Isn't this what React Native does? What's the ...
42
votes
6
answers
62k
views
How can I upload a photo with Expo?
I'm making an app with Expo and want to let the user take a photo or pick one from their camera roll and upload it to my server. How do I do this?
29
votes
2
answers
43k
views
react native link using expo?
How can I use react-native link or How can I link a third party library manually in IOS and Android using exponent.
I was trying to link react-native-image-crop-picker but unable to use in exponent.
16
votes
5
answers
7k
views
NativeBase + Exponent Header
I'm using NativeBase with Exponent. The Header goes beneath the phone's StatusBar. You can see this in the NativeBase demo that Exponent released.
Does anyone have a fix for this?
13
votes
11
answers
27k
views
White flickering when transitioning to a new screen and the background is a dark color?
I am experiencing this when transitioning to one screen to another with two different navigators: ex-navigation and the new one React Navigation
. There is a white flickering for a second (or half a ...
8
votes
1
answer
10k
views
Can you add libraries with native dependencies to an Expo react native project?
Can you use libraries like https://github.com/tolu360/react-native-google-places in an Expo project? I assume any npm library is ok to add, but what about libraries like this google places picker ...
6
votes
1
answer
825
views
ExNavigation : how to pass props to all router components?
In the following code, what's the best way to pass the database variable as props to all the components served by the Router/NavigationProvider?
import {
createRouter,
NavigationProvider,
...
5
votes
2
answers
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, ...
5
votes
1
answer
3k
views
Expo XDE cannot run application throws Tunnel packager not found
Has anyone encountered this error:
Tunnel packager.yu-tyd.my-app.exp.direct not found
My app is just simple hello world
import Expo from 'expo'
import React from 'react'
import { Text } from 'react-...
3
votes
2
answers
2k
views
Font loading error when using the ShoutemUI/TextInput component in a Exponent react-native framework
I'm trying to use shoutem/ui with exponent and I’m getting an error using the shoutem/ui textinput component, where I get the following error message fontFamily Rubik is not a system font and has not ...
3
votes
1
answer
2k
views
How to clear up unmet peer dependency errors in an exponent project
I started with a basic exponent starter project and followed their tutorial to add an apollo client and ended up with a bunch of peer depenendency issues. How can I fix it - do I need to pin certain ...
3
votes
3
answers
5k
views
Expo fonts in global stylesheet
I am using Expo and need to use custom fonts in my global stylesheet. Expo documents this, however it is not relevant in my case since componentDidMount() only executes within a class:
class App ...
3
votes
1
answer
536
views
Using ex-navigation with Exponent js, how do I clear the StackNavigation of a tab when the user navigates away?
I'm using ex-navigation with Exponent and React Native. I have a multi-tab TabNavigation, where each tab has its own StackNavigation element inside. When the user changes tabs in the TabNavigation, I'...
2
votes
1
answer
2k
views
Error: more than one library with package name 'com.facebook.react'
I have a react native project that was auto-generated by https://getexponent.com/ when I detached the project. Now I'm getting these build errors after I added react-native-lock with react native ...
2
votes
2
answers
7k
views
console.error in react-native throws red screen even when __DEV__ is false
I'm building react-native app with Exponent and do some logging with console.error e.g. when network request fails etc. While it's helpful in development to see this red screen with error on simulator ...
2
votes
1
answer
1k
views
Expo Image editor from ImagePicker API
Exponents ImagePicker API lets you pick an image from your library. After picking an image it opens the image in an image editor that lets you edit the image. Is there any way to skip the image ...
1
vote
1
answer
155
views
ExNavigation throws an error saying initialRoute is not defined
Hi I'm new to Expo but I've been having a hard time trying to run my code. I'm stuck at having the error: You must specify initialRoute or initialStack to initialize this StackNavigation even though I ...
1
vote
1
answer
1k
views
React Native, iOS - ScrollView doesn't work on device
ScrollView works on iOS Simulator but it doesn't work when it is actually run on Exponent on device. It goes back to the top after touch release. I'm not sure if this is the problem with my code or it ...
1
vote
1
answer
394
views
TouchableNativeFeedbackSafe.SelectableBackgroundBorderless is not a function
I am trying to use @exponent/react-native-touchable-native-feedback-safe in my react-native based app. I can't seem to set background prop without upsetting either ios or android.
I did:
<...
1
vote
1
answer
70
views
error when using exp build : [exp] API Response Error: Cannot convert `undefined` with r.expr()
This error appeared while using exponent CLI to build an standalone (shell) app:
[exp] API Response Error: Cannot convert `undefined` with r.expr() in:
r.db("prod").table("credentials").getAll(...
0
votes
1
answer
920
views
How to toggle and add a styleName to a react component
I'm creating a react native app using @shoutem/ui and the react-native exponent framework. I want to do something simple: add a styleName 'muted' to a toggle button if it's not selected. In this ...
0
votes
1
answer
773
views
How to launch Expo XDE on Windows
I just installed exponent version 11 on Windows. After the installer completes, it automatically launches XDE. But then I closed it.
I notice that there in the directory ~\AppData\Local\xde\app-2....
0
votes
1
answer
735
views
Sign out with ex-navigation using DrawerNavigation
I built my navigation based on Ex-navigation's example
Everything is working as expected, but I don't know how to Sign out
I have a <Main/> component which renders a <DrawerNavigationMenu/&...
0
votes
1
answer
514
views
TabNavigation/DrawerNavigation in a StackNavigation
I just can't figure it out how exactly I can have TabNavigation or DrawerNavigation inside StackNavigation (something like that):
So from the documentation if I have this:
import React from 'react';
...
0
votes
1
answer
935
views
add to favorite button not styled correctly in exponent and shoutem
In this following example, my add-to-favorites button is not right aligned and is black instead of white. I don't see any styles defined anywhere and I can't seem to get to the safari inspector using ...
0
votes
0
answers
192
views
What does the "At" @ symbol mean in import "from" clause? [duplicate]
I'm checking out the Exponent framework for React Native, and I noticed this line in their demo app:
import { ExponentLinksView } from '@exponent/samples';
I'm vaguely aware of ES7 decorators, but ...
0
votes
1
answer
304
views
StackNavigation from ExNavigation : unbale to do navigation
I am using StackNavigation from @exponent/ex-navigation lib. Everything works fine. But push() or pop() does not to any animation. I have tried setting following for same
<StackNavigation
...