Remove RNGH from web bundle (#9528)

* remove RNGH on web

* add intentionally-failing webpack alias

* Update webpack.config.js
This commit is contained in:
Samuel Newman
2025-12-30 13:40:19 +02:00
committed by GitHub
parent 9743149c26
commit 9cfa7d0ba8
3 changed files with 5 additions and 2 deletions
@@ -1,6 +1,5 @@
import React from 'react'
import {Pressable, View} from 'react-native'
import {type ScrollView} from 'react-native-gesture-handler'
import {Pressable, type ScrollView, View} from 'react-native'
import {type AppBskyLabelerDefs, BSKY_LABELER_DID} from '@atproto/api'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
@@ -0,0 +1,3 @@
export function BlockDrawerGesture({children}: {children: React.ReactNode}) {
return children
}
+1
View File
@@ -27,6 +27,7 @@ module.exports = async function (env, argv) {
'unicode-segmenter/grapheme': require
.resolve('unicode-segmenter/grapheme')
.replace(/\.cjs$/, '.js'),
'react-native-gesture-handler': false, // RNGH should not be used on web, so let's cause a build error if it sneaks in
})
config.module.rules = [
...(config.module.rules || []),