Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.2K
Views
Invariant Violation: View config getter callback for component `div` must be a function (received `undefined`). Make sure to start componen

Currently trying to build a react native screen that displays a chessboard. I am using the react-chessboard component from https://github.com/Clariity/react-chessboard. My code is very basic and I just want to display the screen on an IOS phone using expo. Running this app in a web browser works and the chessboard displays. However, if I want to use a mobile device, I keep getting the error:

Invariant Violation: View config getter callback for component div must be a function (received undefined). Make sure to start component names with a capital letter.

Why is this happening?

import { useRef, useState } from 'react';
import {View, Text, StyleSheet} from 'react-native';
import {Chessboard} from 'react-chessboard';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
    alignItems: "center",
    justifyContent: "center",
  },
});

export default function App() {
  return (
    <view>
      <Chessboard/>
    </view>
  );
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

React Native doesn't have divs, it has Views instead. React libraries will usually not translate into React Native libraries because the building blocks are not the same. You will most likely have to find a React Native library for your chessboard or build your own.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!