Skip to content

Add configuration for page mode and displaying the first page as a single page#227

Merged
irgendeinich merged 4 commits intomasterfrom
reinhard/add-page-mode-config
May 28, 2019
Merged

Add configuration for page mode and displaying the first page as a single page#227
irgendeinich merged 4 commits intomasterfrom
reinhard/add-page-mode-config

Conversation

@irgendeinich
Copy link
Copy Markdown
Contributor

@irgendeinich irgendeinich commented May 23, 2019

Resolves #225

Details

We were missing pageMode and related firstPageAlwaysSingle in the ConfigurationAdapter this adds those missing properties.

Acceptance Criteria

  • When approved, right before merging, rebase with master and increment the package version in package.json, package-lock.json, and samples/Catalog/package.json (see example commit: 1bf805f).
  • Create a new release (and tag) with the new package version (see https://github.com/PSPDFKit/react-native/releases).

configurePageMode(configuration.getString(PAGE_MODE));
}
if (configuration.hasKey(FIRST_PAGE_ALWAYS_SINGLE)) {
configureFirstPageAlwaysSingle(configuration.getBoolean(FIRST_PAGE_ALWAYS_SINGLE));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is the default of configuration.getBoolean(...). What does it return if the value that was set is not a boolean?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If it's not a boolean an exception is thrown, this makes sense in my opinion so users know if they passed an invalid value in the JS code.

@irgendeinich irgendeinich merged commit d7157d5 into master May 28, 2019
@irgendeinich irgendeinich deleted the reinhard/add-page-mode-config branch May 28, 2019 09:36
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.

[Android] pageMode is ignored

3 participants