Add an NPM_TOKEN secret on GitHub. Get your secret key from the NPM dashboard.
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc| diff --git a/node_modules/expo-dev-launcher/plugin/build/withDevLauncher.js b/node_modules/expo-dev-launcher/plugin/build/withDevLauncher.js | |
| index 04c1d7d..a166618 100644 | |
| --- a/node_modules/expo-dev-launcher/plugin/build/withDevLauncher.js | |
| +++ b/node_modules/expo-dev-launcher/plugin/build/withDevLauncher.js | |
| @@ -20,7 +20,7 @@ const DEV_LAUNCHER_ON_NEW_INTENT = ` | |
| `; | |
| const DEV_LAUNCHER_WRAPPED_ACTIVITY_DELEGATE = `DevLauncherController.wrapReactActivityDelegate(this, () -> $1);`; | |
| const DEV_LAUNCHER_ANDROID_INIT = 'DevLauncherController.initialize(this, getReactNativeHost());'; | |
| -const DEV_LAUNCHER_POD_IMPORT = "pod 'expo-dev-launcher', path: '../node_modules/expo-dev-launcher', :configurations => :debug"; | |
| +const DEV_LAUNCHER_POD_IMPORT = "pod 'expo-dev-launcher', path: '../../../node_modules/expo-dev-launcher', :configurations => :debug"; |
| import React, { ComponentProps } from 'react' | |
| import { ScrollView } from 'react-native' | |
| import { useDraggableScroll } from './use-draggable-scroll' | |
| export const DraggableScrollView = React.forwardRef< | |
| ScrollView, | |
| ComponentProps<typeof ScrollView> | |
| >(function DraggableScrollView(props, ref) { | |
| const { refs } = useDraggableScroll<ScrollView>({ | |
| outerRef: ref, |
Here are my attempts to use webpack 5 with Expo's Next.js integration.
Next v10.2 uses webpack5 by default. However, this breaks @expo/next-adapater.
In order to test / reproduce this, I added this PR to my Expo + Next.js monorepo starter: nandorojo/expo-next-monorepo#1
| // pages/_app.js | |
| import ReactNativeNextJsScrollRestore from '../react-native-next-scroll-restore' | |
| import { useEffect } from 'react' | |
| function MyApp({ Component, pageProps }) { | |
| useEffect(() => { | |
| const unsubscribe = ReactNativeNextJsScrollRestore.initialize() | |
| return () => { |
| // web | |
| import P, { ArrowContainer } from 'react-tiny-popover' | |
| import React from 'react' | |
| export default ({ | |
| visible = false, | |
| position, | |
| onClose, | |
| children, | |
| content = null, |
| import { useEffect, useRef } from 'react' | |
| export default function useOnChange<T>( | |
| value: T, | |
| effect: (prev: T, next: T) => void | |
| ) { | |
| const latestValue = useRef(value) | |
| const callback = useRef(effect) | |
| callback.current = effect |
| import { ConfigInterface, useSWRInfinite } from 'swr' | |
| import { useMemo, useCallback, useRef } from 'react' | |
| import last from 'lodash.last' | |
| import get from 'lodash.get' | |
| type PageKeyMaker<Page, Key extends any[]> = ( | |
| index: number, | |
| previousPageData?: Page | |
| /** | |
| * Mutable ref object. Set this to `true` before the request and `false` afterwards if the request is fetching more. |