Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
[next-adapter] update RNW peer, remove deprecated types (#3377)
Browse files Browse the repository at this point in the history
* [next-adapter] update RNW peer, remove deprecated types

* resolve Next types mess

* add missing @types/react after Next bump
  • Loading branch information
Simek committed Apr 9, 2021
1 parent 166976a commit 4536fc8
Show file tree
Hide file tree
Showing 4 changed files with 1,559 additions and 1,130 deletions.
3 changes: 2 additions & 1 deletion packages/dev-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"devDependencies": {
"@babel/plugin-proposal-decorators": "^7.8.3",
"@expo/babel-preset-cli": "0.2.19",
"@types/react": "^16.9.56",
"anser": "^1.4.7",
"apollo-cache-inmemory": "^1.1.12",
"apollo-client": "^2.2.8",
Expand All @@ -48,7 +49,7 @@
"graphql-tag": "^2.9.1",
"has-ansi": "^3.0.0",
"http-proxy-middleware": "^0.18.0",
"next": "^8.0.0",
"next": "^9.0.0",
"p-timeout": "3.1.0",
"qrcode.react": "0.8.0",
"react": "^16.8.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/next-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@
"devDependencies": {
"@expo/babel-preset-cli": "0.2.19",
"@types/fs-extra": "^9.0.1",
"@types/next": "*8.0.6",
"@types/node-fetch": "^2.5.8",
"@types/prompts": "^2.0.6",
"rimraf": "^3.0.2"
},
"peerDependencies": {
"next": "^9",
"react": "^16",
"react-native-web": "^0.11.7"
"react-native-web": "^0.13.12"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 1 addition & 2 deletions packages/next-adapter/src/withExpo.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { getBareExtensions } from '@expo/config/paths';
import { withUnimodules } from '@expo/webpack-config/addons';
import { AnyConfiguration } from '@expo/webpack-config/webpack/types';
import { NextConfig } from 'next';

export default function withExpo(nextConfig: NextConfig = {}): NextConfig {
export default function withExpo(nextConfig: any = {}): any {
return {
...nextConfig,
pageExtensions: getBareExtensions(['web']),
Expand Down
Loading

0 comments on commit 4536fc8

Please sign in to comment.