Closed faiz-akhtar closed 1 year ago
Wrapping <Chessboard />
in <GestureHandlerRootView></GestureHandlerRootView>
fixes the gestures.
Oddly enough, adding some random colour to the black pieces png files fixes the rendering problem. But then we end up with ugly pieces.
The UI rendering issue occurs only when dark background (night mode) is enabled in android. Maybe this is an android issue, or a React Native issue, not an issue with the library. Still would welcome any workaround if there is any, for dark mode.
@faiz-akhtar it feels like 2 subjects:
You have to install this library (like i the example in the README.md:
import { GestureHandlerRootView } from "react-native-gesture-handler";
and wrap your <View>
with it.
it looks like you are coloring the pieces yourself or your darkmode function does so. If you apply the params like mentioned in README.md only the Square color changes. Without having looked into it, I assume pieces are SVG and therefore styled using fill
property.
Still an issue?
@scha-ch
I am going to close this issue as it is too old and I haven't verified if it still exists.
App.js file below: