Skip to content

Add "Native Catalog" with advanced integration examples on iOS #339

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

Merged
merged 18 commits into from
Mar 18, 2020

Conversation

radazzouz
Copy link
Contributor

@radazzouz radazzouz commented Jan 10, 2020

Details

This PR adds the Native Catalog sample project on iOS. The sample project was originally added on Android in #318.

recording

Code that needs to be reviewed (Is not Autogenerated)

  • App.js.
  • shared.js.
  • README.md.
  • All Objective-C Code.

Acceptance Criteria

@@ -85,17 +100,23 @@ class ManualSigningScreen extends Component<{}> {
flexDirection: 'row',
height: 40,
alignItems: 'center',
padding: 10,
padding: -10,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looked bad on iOS. On Android it looks okay with -10.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would actually look nicer with this (at least on iOS, since the view is auto sized and the text doesn't go outside the safe area. I haven't tested it on Android though.)

<SafeAreaView
  style={{
    flexDirection: 'row',
    alignItems: 'center',
  }}>

Do you think we could use that?

Copy link
Contributor Author

@radazzouz radazzouz Mar 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @steviki! In 1223bab I switched to SafeAreaView and it looks great on iOS.

@irgendeinich when you have a minute can you please test the first two examples on Android to see SafeAreaView works correctly? I am no longer able to run the NativeCatalog on Android.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using SafeAreaView also works great on Android.

Manual Signing Example Watermark Example
Screen Shot 2020-03-18 at 7 29 11 AM Screen Shot 2020-03-18 at 7 29 30 AM

Copy link
Contributor

@irgendeinich irgendeinich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JS changes look good, and Android Catalog is still working as expected.

@radazzouz radazzouz force-pushed the rad/native-catalog branch 2 times, most recently from 03eb62f to 0db4612 Compare February 19, 2020 12:36
Copy link
Contributor

@steviki steviki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! 👍

Just a few small nitpicks.

And sorry for the late review!

@@ -85,17 +100,23 @@ class ManualSigningScreen extends Component<{}> {
flexDirection: 'row',
height: 40,
alignItems: 'center',
padding: 10,
padding: -10,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would actually look nicer with this (at least on iOS, since the view is auto sized and the text doesn't go outside the safe area. I haven't tested it on Android though.)

<SafeAreaView
  style={{
    flexDirection: 'row',
    alignItems: 'center',
  }}>

Do you think we could use that?

signer.reason = @"Contract agreement";
PSPDFSignatureManager *signatureManager = PSPDFKitGlobal.sharedInstance.signatureManager;
[signatureManager clearRegisteredSigners];
[signatureManager registerSigner:signer];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't actually need to register the signer, since we use it directly to sign the form element, instead of using the signature view.

@radazzouz radazzouz force-pushed the rad/native-catalog branch from b59658a to c4f692e Compare March 16, 2020 18:04
@radazzouz radazzouz force-pushed the rad/native-catalog branch from 2596ae7 to c312b0f Compare March 18, 2020 11:43
@radazzouz radazzouz merged commit 628f5dc into master Mar 18, 2020
@radazzouz radazzouz deleted the rad/native-catalog branch March 18, 2020 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants