[v4] SyntaxError in BottomSheetBackdrop.tsx that does not make sense
See original GitHub issueBug
Getting
error: SyntaxError: /Users/pkursawe/projects/lego-feature/app/node_modules/@gorhom/bottom-sheet/src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx: /Users/pkursawe/projects/lego-feature/app/node_modules/@gorhom/bottom-sheet/src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx: Unexpected token, expected ";" (4:6)
2 | (() => {
3 | opacity: interpolate(animatedIndex.value, [-1, disappearsOnIndex, appearsOnIndex], [0, 0, opacity], Extrapolate.CLAMP),
> 4 | flex: 1
| ^
5 | }
6 | )
Just by importing the <BottomSheet>
component.
Environment info
Library | Version |
---|---|
@gorhom/bottom-sheet | 4.1.3 |
react-native | 0.63.3 |
react-native-reanimated | 2.3.0-beta.2 |
react-native-gesture-handler | 1.10.3 |
// babel.config.js
module.exports = {
compact: false, // Prevent "The code generator has deoptimised the styling of..."
presets: ["module:metro-react-native-babel-preset"],
plugins: [
[
"module-resolver",
{
root: ["./src"],
extensions: [".ios.js", ".android.js", ".js", ".ts", ".tsx", ".json"],
alias: {
"@components": "./src/components",
hooks: "./src/hooks",
stores: "./src/stores",
},
},
],
"react-native-reanimated/plugin",
],
}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:6
Top Results From Across the Web
85 - Stack Overflow
I understand this is a simple issue and an error that I am making but however, I have not been able to resolve...
Read more >[v4] SyntaxError in BottomSheetBackdrop.tsx that ... - bytemeta
[v4] SyntaxError in BottomSheetBackdrop.tsx that does not make sense #728. Bug. Getting error: SyntaxError: /Users/pkursawe/projects/lego-feature ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
someone figured out how to fix it?
@pke: hello! 👋
This issue is being automatically closed because it does not follow the issue template.