Skip to content

Conversation

@simoarpe
Copy link
Contributor

This PR removes ReactFragmentActivity as it's officially provided by Facebook now, and reverts PSPDFKitPackage to a no-argument constructor. This is required to support react-native link <module> command or we have to switch back to manual linking, something that is highly unrecommended considering we have already 12 steps for integrating the react-native-pspdfkit module.

Signed-off-by: Simone Arpe <simon.arpe@gmail.com>
Signed-off-by: Simone Arpe <simon.arpe@gmail.com>
Signed-off-by: Simone Arpe <simon.arpe@gmail.com>
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.

Not passing in the Application causes setPageIndex to no longer work.
Also while we're at it we could bump the PSPDFKit version as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

This sadly doesn't work since getCurrentActivity returns null when starting up the app. So our setPageIndex method won't work anymore.

Signed-off-by: Simone Arpe <simon.arpe@gmail.com>
Signed-off-by: Simone Arpe <simon.arpe@gmail.com>
@simoarpe simoarpe force-pushed the simone/issue/fix-android-project branch from 4d7dc46 to 468f218 Compare March 22, 2018 12:12
Signed-off-by: Simone Arpe <simon.arpe@gmail.com>
@simoarpe simoarpe merged commit 09cde52 into master Mar 22, 2018
@simoarpe simoarpe deleted the simone/issue/fix-android-project branch March 22, 2018 16:48
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