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

Type {removeClippedSubviews: false;} is missing the following properties from type FlatListProps<Data> #91

Open
abdullah-tsx opened this issue Oct 23, 2024 · 1 comment

Comments

@abdullah-tsx
Copy link

Passing options gives TS error.

<Timeline
  isUsingFlatlist={true} // Ensures FlatList is used internally
  data={shipmentTrackingData} // Your shipment data
  circleSize={15}
  showTime={false}
  lineColor="rgba(0,0,0,0.2)"
  circleColor="#f89e34"
  columnFormat="single-column-left"
  eventDetailStyle={{
    marginTop: -10,
    marginBottom: 10,
  }}
  options={{
    removeClippedSubviews: false, // Disables clipping behavior
  }}
  renderDetail={(rowData) => {
    const time = (
      <Text className="mb-2 font-light text-xs italic">{rowData.time}</Text>
    );
    const title = <Text style={{ fontWeight: "bold" }}>{rowData.title}</Text>;
    const desc = rowData.description ? (
      <Text>{rowData.description}</Text>
    ) : null;
    return (
      <View style={{ flex: 1 }}>
        {time}
        {title}
        {desc}
      </View>
    );
  }}
/>;
@aswinsam
Copy link

I am facing the same issue with
options={{
onEndReached: onEndReached
}}
which is an options provided in the npm package readme itself, all I did was use typescript.

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

2 participants