Skip to content

Commit

Permalink
fix: solve build issue with wrong value in measure spec (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojteg1337 authored Nov 14, 2019
1 parent 19d15cb commit 7d6b38c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ public long measure(
YogaMeasureMode heightMode) {
if (!mMeasured) {
SeekBar reactSlider = new ReactSlider(getThemedContext(), null, STYLE);
final int spec = View.MeasureSpec.makeMeasureSpec(
ViewGroup.LayoutParams.WRAP_CONTENT,
View.MeasureSpec.UNSPECIFIED);
final int spec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
reactSlider.measure(spec, spec);
mWidth = reactSlider.getMeasuredWidth();
mHeight = reactSlider.getMeasuredHeight();
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@
prettier "1.16.4"

"@react-native-community/slider@./src":
version "2.0.2"
version "2.0.4"

"@types/babel__core@^7.1.0":
version "7.1.2"
Expand Down

0 comments on commit 7d6b38c

Please sign in to comment.