Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Output Rendering in Expo #63

Open
NemesisLW opened this issue Oct 12, 2023 · 4 comments
Open

No Output Rendering in Expo #63

NemesisLW opened this issue Oct 12, 2023 · 4 comments

Comments

@NemesisLW
Copy link

Describe the bug
I am trying to render a basic MasonryList. But not able to generate any output. However it works with vanilla FlatList.

To Reproduce
Here is the code:

import { StyleSheet, View, FlatList } from "react-native";
import React from "react";
import { SafeAreaView } from "react-native-safe-area-context";
import MasonryList from "@react-native-seoul/masonry-list";
import DashboardCard from "@/components/DashboardCard";
import { widgets } from "@/constants/widgets";

const Dashboard = () => {
  return (
    <SafeAreaView className="flex">
      {/* <FlatList
        data={widgets}
        keyExtractor={(item) => item.id}
        renderItem={(item) => <DashboardCard />}
      /> */}
      <MasonryList
        data={widgets}
        keyExtractor={(item) => item.id}
        numColumns={2}
        showsVerticalScrollIndicator={false}
        renderItem={({ item }) => <DashboardCard />}
        onEndReachedThreshold={0.1}
      />
    </SafeAreaView>
  );
};

export default Dashboard;

Smartphone:

  • Device: Android
  • Version [13]

package version
@react-native-seoul/masonry-list": "^1.4.2

@trandung1291
Copy link

same issues

@trandung1291
Copy link

trandung1291 commented Oct 18, 2023

It seems MasonryList is not rendering inside the SafeAreaView react-native-safe-area-context tag, it working with SafeAreaView of react-native

@Standin-Alone
Copy link

not working too no display

@Saswat689
Copy link

This package built on such a good idea is unfortunately DEAD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants