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

261
Views
How to use React-native-super-grid as a Component
import { FlatGrid } from 'react-native-super-grid';


class Grid extends React.Component () {
    
export default function Example() {

I just write until here.. But, don't work... What I have to do ..

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You have to return a valid response from the component. For example, if you want to make a Component using FlatGrid you can use this structure:

import { View } from 'react-native';
import { FlatGrid } from 'react-native-super-grid';


export default function Example() {
  return(  
    <View>
      <FlatGrid
        itemDimension={130}
        data={[1,2,3,4,5,6]}
        renderItem={({ item }) => (<Text>{item}</Text>)}
      />
    </View>
  )
}

And also I see you are using a class class named Grid that is extending the React.Component () and from your code I see you are not importing the React from react so in order to use the class you have to use:

import React from 'react';
import { View } from 'react-native';
import { FlatGrid } from 'react-native-super-grid';

export default class Grid extends React.Compoment {
  render(){
    return(
      <View>
        <FlatGrid
          itemDimension={130}
          data={[1,2,3,4,5,6]}
          renderItem={({ item }) => (<Text>{item}</Text>)}
        />
      </View>
    )
  }
}
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!