mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix react-native-svg default fill black
This commit is contained in:
@@ -68,7 +68,7 @@ const Sparkline: React.FC<Props> = ({ data, width, height, margin = 0 }) => {
|
||||
const fillPoints = linePoints.concat(closePolyPoints)
|
||||
|
||||
return (
|
||||
<Svg height={height} width={width} style={{ marginRight: margin }}>
|
||||
<Svg height={height} width={width} style={{ marginRight: margin }} fill='none'>
|
||||
<G>
|
||||
<Path d={'M' + fillPoints.join(' ')} fill={colors.blue} fillOpacity={0.1} />
|
||||
<Path
|
||||
|
||||
@@ -145,12 +145,12 @@ const Timeline: React.FC<Props> = ({
|
||||
ref={customFLRef || flRef}
|
||||
scrollEventThrottle={16}
|
||||
onScroll={onScroll}
|
||||
windowSize={7}
|
||||
windowSize={5}
|
||||
data={flattenPages(data)}
|
||||
{...(customProps?.renderItem
|
||||
? { renderItem: customProps.renderItem }
|
||||
: { renderItem: ({ item }) => <TimelineDefault item={item} queryKey={queryKey} /> })}
|
||||
initialNumToRender={6}
|
||||
initialNumToRender={3}
|
||||
maxToRenderPerBatch={3}
|
||||
onEndReached={() => !disableInfinity && !isFetchingNextPage && fetchNextPage()}
|
||||
onEndReachedThreshold={0.75}
|
||||
|
||||
Reference in New Issue
Block a user