Comments (5)
@scha-ch
- The unresponsive pieces issue was resolved by wrapping with GestureHandlerRootView .
- The coloring issue was not resolved last time I checked. But that was in February. I am no longer working on the project which needed this repository. However, it is easy to check for anyone building an app with this chessboard. Just enable night mode in android and see if the pieces render correctly.
I am going to close this issue as it is too old and I haven't verified if it still exists.
from react-native-chessboard.
Wrapping <Chessboard />
in <GestureHandlerRootView></GestureHandlerRootView>
fixes the gestures.
from react-native-chessboard.
Oddly enough, adding some random colour to the black pieces png files fixes the rendering problem. But then we end up with ugly pieces.
from react-native-chessboard.
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.
from react-native-chessboard.
@faiz-akhtar it feels like 2 subjects:
- unresponsive pieces?
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.
- coloring (e.g. darkmode)
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?
from react-native-chessboard.
Related Issues (6)
- allow same .move() interface as Chess.js provides (allow SAN) HOT 3
- Way to flip the board depending on player color? HOT 3
- Property 'undo' does not exists for type 'ChessboardRef' HOT 1
- Error: GestureDetector must be used as a descendant of GestureHandlerRootView. HOT 1
- The player's position start with the black pieces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-chessboard.