hyochan / react-native-masonry-list

The Masonry List implementation which has similar implementation as the `FlatList` in React Native
MIT License
393 stars 55 forks source link

Layout styling fixes #23

Closed Vadko closed 2 years ago

Vadko commented 2 years ago

Description

Related Issues

I included props to style the component header and renamed style prop on the scrollView, due to the problems it caused when using styles for whole component for header component to containerStyle. Also, I've added contentContainerStyle and wrapper header with View to provide styles for it.

Tests

I added the following tests:

Test Suites: 1 passed, 1 total Tests: 10 passed, 10 total Snapshots: 1 passed, 1 total Time: 2.596 s

Checklist

codecov[bot] commented 2 years ago

Codecov Report

Merging #23 (1e79426) into master (17f7ef8) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #23   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           31        33    +2     
  Branches        11        12    +1     
=========================================
+ Hits            31        33    +2     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
index.tsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 17f7ef8...1e79426. Read the comment docs.