Giter Site home page Giter Site logo

expo / examples Goto Github PK

View Code? Open in Web Editor NEW
2.0K 26.0 831.0 51.42 MB

Example projects that demonstrate how to use Expo APIs and integrate Expo with other popular tools

JavaScript 57.70% HTML 2.14% TypeScript 26.91% Shell 2.13% Java 3.45% Objective-C 0.13% Ruby 1.37% Swift 0.04% Objective-C++ 1.16% MDX 4.33% CSS 0.64%
react-native react-native-web examples expo expo-web expo-examples react-native-example react-native-web-examples

examples's Introduction

expo examples

Expo Examples

Expo SDK version first-timers-only Friendly

Create an Example | Suggest an Example πŸš€

Easy example for using features, libraries, and other integrations with the Expo SDK!

Twitter: expo Star expo-examples on Github

Usage

Use this repo to create new React/React Native projects with create-expo-app or create-react-native-app.

npm create expo ./<path> --example <Example>
npx create-react-native-app --template <Example>

# Example - typescript

npm create expo ./typescript-app --example with-typescript
npx create-react-native-app -t with-typescript

Or new Expo projects using create-expo-app:

npx create-expo-app --example <Example>

# Example - typescript

npx create-expo-app -e with-typescript

Contributors ✨

All Contributors

If you'd like to contribute something, please check out our contributing guide!

Thanks goes to these wonderful people (emoji key):

Evan Bacon
Evan Bacon

πŸ’» πŸ“–
Brent Vatne
Brent Vatne

πŸ’»
Cedric van Putten
Cedric van Putten

πŸ’»
Charlie Cruzan
Charlie Cruzan

πŸ’» πŸ“–
Caleb Nance
Caleb Nance

πŸ’» πŸ“–
StanisΕ‚aw Chmiela
StanisΕ‚aw Chmiela

πŸ’»
Tomasz Sapeta
Tomasz Sapeta

πŸ‘€
Ivn Nv
Ivn Nv

πŸ’»
gasolin
gasolin

πŸ’»
Brooke
Brooke

πŸ’»
Faraz Patankar
Faraz Patankar

πŸ’»
El Bouchaibi Yassine
El Bouchaibi Yassine

πŸ’»
Andrew Meyer
Andrew Meyer

πŸ’»
Tag Howard
Tag Howard

πŸ’»
Kim Brandwijk
Kim Brandwijk

πŸ’»
Avi Avinav
Avi Avinav

πŸ’»
Keith Kurak
Keith Kurak

πŸ’»
Fernando Rojo
Fernando Rojo

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

examples's People

Contributors

ajsmth avatar allcontributors[bot] avatar amandeepmittal avatar anp avatar brentvatne avatar brookemitchell avatar bycedric avatar calebnance avatar ccheever avatar cruzach avatar dependabot[bot] avatar douglowder avatar evanbacon avatar farazpatankar avatar gaokevin1 avatar github-actions[bot] avatar ide avatar jimmylee avatar kbrandwijk avatar keith-kurak avatar lukmccall avatar mgm1313 avatar mikecuevas avatar mohamedabkal avatar nandorojo avatar noureddinbakir avatar sjchmiela avatar takameyer avatar yassineelbouchaibi avatar ykbryan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

examples's Issues

why https requires, can it use http for local tests

why https requires, is it mandatory, is there any way i can use http ?

i was testing socket.io on localhost, works on https, but http

        // works on https : const socket = client.connect('https://socket-io-chat.now.sh/');
        const socket = client.connect('http://localhost:8080');
        console.log('connecting...')
        console.log('...')
        console.log('...')
        socket.on('news', function (data) {
            console.log('connected');
            socket.emit('my other event', {
                my: 'data'
            });
        });
        socket.on('connect', function (socket) {
            console.log('Connected!');
        });

Redirect Not working when handled from within a script handler

Hi,

This backend code for automatic redirection works well when this is the only html page used. However if I have redirected to this page from another page then the automatic redirection doesnt work. However manually clicking on the a href links back to the app still works. Have observed this on Android.

Need some urgent help with this. Any thoughts?

RenderHours

Please can i render Hours in the agenda ?

Web browser example out of date.

We cannot unregister linking event listener immediately after resolving of openBrowserAsync promise. On Android, this promise resolves immediately, leaving no one to listen for issues.

Moreover, WebBrowser does not support dismissBrowser on Android.
Please refer to discussion in this issue.

react-native-init example failed to compile

Seems that Camera from the expo-camera module is not correctly imported. This project works if I remove this dependency from the App.js

C:/Users/charl/Downloads/web-examples-master/react-native-init/node_modules/expo-camera/build/Camera.js 169:16
Module parse failed: Unexpected token (169:16)
You may need an appropriate loader to handle this file type.
|         const onBarCodeScanned = this._onObjectDetected(this.props.onBarCodeScanned);
|         const onFacesDetected = this._onObjectDetected(this.props.onFacesDetected);
>         return (<ExponentCamera {...nativeProps} ref={this._setReference} onCameraReady={this._onCameraReady} onMountError={this._onMountError} onBarCodeScanned={onBarCodeScanned} onFacesDetected={onFacesDetected} onPictureSaved={_onPictureSaved}/>);
|     }
| }

Error loading withAuthenticator with aws-amplify-react-native

Using the aws amplify auth for mobile mode works well but for the web mode shows this error: Can’t find AmplifyTheme variable

This is the code (comes from the official website)

import { withAuthenticator } from 'aws-amplify-react-native';
import Amplify from 'aws-amplify';
// Get the aws resources configuration parameters
import awsconfig from './aws-exports'; // if you are using Amplify CLI

Amplify.configure(awsconfig);

// ...

export default withAuthenticator(App);

Thanks in advance!

codesandbox examples fails

Hi folks, great to things working on a codesandbox, vurrent version seems to be failing with this error,

node_modules/react-native-gesture-handler/DrawerLayout.js: Support for the experimental syntax 'exportDefaultFrom' isn't currently enabled (30:8):

28 | const SETTLING = 'Settling';
29 |

30 | export type PropType = {
| ^
31 | children: any,
32 | drawerBackgroundColor?: string,
33 | drawerPosition: 'left' | 'right',

Add @babel/plugin-proposal-export-default-from (https://git.io/vb4yH) to the 'plugins' section of your Babel config to enable transformation.

28 | const SETTLING = 'Settling';
29 |

30 | export type PropType = {
| ^
31 | children: any,
32 | drawerBackgroundColor?: string,
33 | drawerPosition: 'left' | 'right',

Add event

Hello,

Does this library allow me to add an event in the agenda, or I should write the code myself?

Thank you

[electron] Can't start the with-electron example.

Hi,

I'm trying to setup expo with electron.

I've followed this : https://docs.expo.io/versions/latest/guides/using-electron/.

But it won't start due to :

┏ Renderer -------------------

  Error: Cannot find entry file index.ts (or main.ts, or app.ts, or index.js, or main.js, or app.js)
      at computeEntryFile (/home/x/Clones/test/node_modules/electron-webpack/src/main.ts:389:11)
      at WebpackConfigurator.configure (/home/x/Clones/test/node_modules/electron-webpack/src/main.ts:222:29)
      at configure (/home/x/Clones/test/node_modules/electron-webpack/src/main.ts:376:10)

β”— ----------------------------

I've tried to start your example, without success.

Even tho I've fresh clone, yarn install and followed this README.md.

I know I could workaround it by adding a index.js but from the documentation it's suppose to find the App.js by its own.

Any idea?

Correct Redirect url

Hey Brent!

I am having issues with the redirect url.
I am using google cloud functions to make a redirect url.

After success login, I am redirected to the enpoint where I am getting "Error: Not-Found".

I am curious if the is becouse of my redirect url to expo host?
I am not sure if it is the right format.

I am colling the url like that 'const RedirectURI = 'https://us-central1-coffee-cloud-mobile-app.cloudfunctions.net/facebookRedirect/facebook';'

my cloud function:

const app = require('express')();
const cors = require("cors")

app.use(cors({ origin: true }))

app.get('/redirect', (req, res) => {
  let qs = req._parsedUrl.query;
  res.redirect('exp://exp.host/@ryszardrzpa/coffeecloud/+redirect/?' + qs);
});

app.get('/facebook', (req, res) => {
  res.sendFile('facebook.html', { root: __dirname });
});

module.exports = app;

Also if the app is build as stand alone app and push to the app store, will exp://exp.host/@ryszardrzpa/coffeecloud
be valid redirect url?

Thanks,
Ryszard

yarn gatsby build => does not build

As already mentioned in the original Gatsby/Expo support, the production build fails (slorber/gatsby-plugin-react-native-web#14)

I've tried to run yarn gatsby build on the with-gatsby example and it also fails.
Trying to understand what might be the problem currently but it looks like the final webpack configuration does not transpile correctly node_modules libs, only when in production mode.

image

Instead of a redirect the app is restarted

When I test the with-webbrowser-redirect example, the app is restarted after a link click instead of redirecting and calling the Linking.addEventListener. Can someone confirm this behaviour? And is there another way to redirect to your app?

Android: 4.4.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.