Skip to content

Conversation

@dratwas
Copy link
Collaborator

@dratwas dratwas commented Jul 16, 2019

No description provided.

@dratwas dratwas requested a review from michalchudziak July 16, 2019 13:31
Copy link
Collaborator

@michalchudziak michalchudziak left a comment

Choose a reason for hiding this comment

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

Good job! We can either work in this PR or merge that and address changes later 😃

companion object {
const val MODULE_NAME = "com.callstack.reactnativebrownfield.MODULE_NAME"

fun createReactActivityIntent(context: Context, moduleName: String): Intent {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we gonna need initialProps as a 3rd argument

Copy link
Collaborator Author

@dratwas dratwas Jul 17, 2019

Choose a reason for hiding this comment

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

Yeah. I created issue for that - https://github.com/callstack-internal/react-native-brownfield/issues/1. It is related to activity and fragment, so this part could be done in another PR

companion object {
const val MODULE_NAME = "com.callstack.reactnativebrownfield.MODULE_NAME"

fun createReactNativeFragment(moduleName: String): ReactNativeFragment {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The same thing, an initialProps would be nice.

}

public void startReactNativeFragment(View view) {
Intent intent = new Intent(this, ReactNativeFragmentActivity.class);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Aren't we supposed to use createReactNativeFragment here?

Copy link
Collaborator Author

@dratwas dratwas Jul 17, 2019

Choose a reason for hiding this comment

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

We could, but I wanted to make it clean and I moved all stuff related to fragment to it's own activity. WDYT?

@dratwas
Copy link
Collaborator Author

dratwas commented Jul 17, 2019

I prefer to finish all related work in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants