Code Monkey home page Code Monkey logo

Comments (5)

faiz-akhtar avatar faiz-akhtar commented on May 27, 2024 1

@scha-ch

  1. The unresponsive pieces issue was resolved by wrapping with GestureHandlerRootView .
  2. 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.

faiz-akhtar avatar faiz-akhtar commented on May 27, 2024

Wrapping <Chessboard /> in <GestureHandlerRootView></GestureHandlerRootView> fixes the gestures.

from react-native-chessboard.

faiz-akhtar avatar faiz-akhtar commented on May 27, 2024

Oddly enough, adding some random colour to the black pieces png files fixes the rendering problem. But then we end up with ugly pieces.
Screenshot_2023-02-12-06-03-34-011_host exp exponent

from react-native-chessboard.

faiz-akhtar avatar faiz-akhtar commented on May 27, 2024

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.

artiphishle avatar artiphishle commented on May 27, 2024

@faiz-akhtar it feels like 2 subjects:

  1. 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.

  1. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.