Skip to content

Commit

Permalink
Add getSignatureView method
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lecoeur committed May 3, 2017
1 parent 83967fa commit 8181c5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public RSSignatureCaptureMainView(Context context, Activity activity) {
ViewGroup.LayoutParams.MATCH_PARENT));
}

public RSSignatureCaptureView getSignatureView() {
return signatureView;
}

public void setSaveFileInExtStorage(Boolean saveFileInExtStorage) {
this.saveFileInExtStorage = saveFileInExtStorage;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ public void setPropsWidth(RSSignatureCaptureMainView view, @Nullable Integer max
public void setPropsMinStrokeWidth(RSSignatureCaptureMainView view, @Nullable int minStrokeWidth) {
Log.d("minStrokeWidth:", ""+minStrokeWidth);
if(view!=null){
view.setMinStrokeWidth(minStrokeWidth);
view.getSignatureView().setMinStrokeWidth(minStrokeWidth);
}
}

@ReactProp(name = PROPS_MIN_STROKE_WIDTH)
public void setPropsMaxStrokeWidth(RSSignatureCaptureMainView view, @Nullable int maxStrokeWidth) {
Log.d("maxStrokeWidth:", ""+maxStrokeWidth);
if(view!=null){
view.setMaxStrokeWidth(maxStrokeWidth);
view.getSignatureView().setMaxStrokeWidth(maxStrokeWidth);
}
}

Expand Down

0 comments on commit 8181c5a

Please sign in to comment.