Skip to main content

Questions tagged [exponentjs]

The tag has no usage guidance, but it has a tag wiki.

exponentjs
Filter by
Sorted by
Tagged with
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 ...
Aurora's user avatar
  • 3,543
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?
ide's user avatar
  • 20.6k
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.
Ankush Rishi's user avatar
  • 2,980
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?
Molly Harper's user avatar
  • 2,443
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 ...
vaklinzi's user avatar
  • 1,973
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 ...
MonkeyBonkey's user avatar
  • 47.3k
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, ...
cmrichards's user avatar
  • 1,725
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, ...
stvn's user avatar
  • 51
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-...
JohnnyQ's user avatar
  • 5,069
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 ...
MonkeyBonkey's user avatar
  • 47.3k
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 ...
MonkeyBonkey's user avatar
  • 47.3k
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 ...
Molly Harper's user avatar
  • 2,443
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'...
Travis G.'s user avatar
  • 218
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 ...
MonkeyBonkey's user avatar
  • 47.3k
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 ...
Michal Ostruszka's user avatar
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 ...
Sisir's user avatar
  • 218
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 ...
JohnnyQ's user avatar
  • 5,069
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 ...
Przemek Piechota's user avatar
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: <...
gitter's user avatar
  • 1,716
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(...
Arman's user avatar
  • 364
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 ...
MonkeyBonkey's user avatar
  • 47.3k
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....
Mark VY's user avatar
  • 1,597
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/&...
Marlon Mendez's user avatar
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'; ...
charbinary's user avatar
  • 1,895
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 ...
MonkeyBonkey's user avatar
  • 47.3k
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 ...
Bobby Circle Ciraldo's user avatar
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 ...
AK2016's user avatar
  • 159