Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linusu/expo-legacy-browser-support
iOS 9 and IE 11 support for Expo Web
https://github.com/linusu/expo-legacy-browser-support
expo expo-web internet-explorer-11 ios9
Last synced: 12 days ago
JSON representation
iOS 9 and IE 11 support for Expo Web
- Host: GitHub
- URL: https://github.com/linusu/expo-legacy-browser-support
- Owner: LinusU
- Created: 2020-07-24T14:18:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-14T16:50:57.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T01:15:50.995Z (7 months ago)
- Topics: expo, expo-web, internet-explorer-11, ios9
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# iOS 9 and IE 11 support for Expo Web
All the config you need to get `expo build:web` to output code that's compatible with iOS 9 and Internet Explorer 11, in one easy to use package.
## Usage
1. Install package
```sh
npm install --save-dev expo-legacy-browser-support
```2. Configure babel (`babel.config.js`)
```diff
module.exports = function(api) {
api.cache(true);
return {
- presets: ['babel-preset-expo'],
+ presets: ['expo-legacy-browser-support/babel'],
};
};
```3. Add WebPack config (`webpack.config.js`)
```js
module.exports = require('expo-legacy-browser-support/webpack')
```4. Add polyfills (`package.json`)
```diff
{
"version": "0.0.0",
- "main": "node_modules/expo/AppEntry.js",
+ "main": "node_modules/expo-legacy-browser-support/AppEntry.js",
"private": true,
"scripts": {
```