Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

WIP: Add ancillary factory fragment #1703

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

KarinaDavtyan
Copy link

Add ancillary factory Fragment which would be used to show ancillary services on Android.
Also addFragment to the playground

Copy link
Contributor

@tbergquist-godaddy tbergquist-godaddy left a comment

Choose a reason for hiding this comment

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

You are making changes to rnkiwimobile, so you would need to increase target-framework-version(or something like that) in <root>/package.json, and increase version in <root>/.build/package.json

@KarinaDavtyan
Copy link
Author

You are making changes to rnkiwimobile, so you would need to increase target-framework-version(or something like that) in <root>/package.json, and increase version in <root>/.build/package.json

Isnt the one in the build folder just for hotels or its just the same name?

  "name": "@kiwicom/react-native-app-hotels",
  "version": "0.0.52",

And in the <root>/package.json do you mean that this one should be updated?

  "rnkiwimobile": {
    "code-push-target-binary-version": "15.0.0"
  },

@tbergquist-godaddy
Copy link
Contributor

Isnt the one in the build folder just for hotels or its just the same name?

No, it is for the integration used by android team. Probably a good idea to rename it. Could you create an issue for that?

do you mean that this one should be updated?

Yes, that is the one

@KarinaDavtyan
Copy link
Author

Okay, thanks! will update

No, it is for the integration used by android team. Probably a good idea to rename it. Could you create an issue for that?

Sure, issue done #1704

import com.kiwi.rnkiwimobile.ancillaries.RNAncillaryFactoryInitialProperties


class AncillaryFactoryFragment: RNAncillaryFactoryFragment(RNAncillaryFactoryInitialProperties(service = "fast_track", bookingId = 123, kwAuthToken = "mock")) {

Choose a reason for hiding this comment

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

Is this line too long?

Copy link
Author

Choose a reason for hiding this comment

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

it is. Not sure what is the proper way to make it shorter. But I tried making it shorter


import com.kiwi.rnkiwimobile.RNKiwiFragment;

abstract class RNAncillaryFactoryFragment(initialProperties: RNAncillaryFactoryInitialProperties) : RNKiwiFragment(RNAncillaryFactoryModule.getInitialProperties(initialProperties)) {

Choose a reason for hiding this comment

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

Line too long...

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there some equivalent of eslint for this maybe?

Copy link
Author

Choose a reason for hiding this comment

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

Same here not sure if I escaped to new line properly.

SoHotSoup
SoHotSoup previously approved these changes Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants