Skip to content
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

[Standalone for NativeComponents] AndroidDrawerLayout #23036

Closed
wants to merge 1 commit into from
Closed

[Standalone for NativeComponents] AndroidDrawerLayout #23036

wants to merge 1 commit into from

Conversation

HeinrichTremblay
Copy link

@HeinrichTremblay HeinrichTremblay commented Jan 17, 2019

Changelog:

[Android] [Changed] - As mentioned in #22990, I have moved native components required by DrawerLayoutAndroid.android.js into separate files and added Flow Typing.

Question

I have two questions.

1. ViewStyleProp is sufficiently complex not to be duplicate code?

It is not included in the files mentioned by #22990 comment. Perhaps we should be adding knowledge of that type to the codegen since it is quite complicated, what do you think @TheSavior?

2. Should I require React?

The Props type include renderNavigationView: () => React.Element<any>, and children?: React.Node,. Therefore I added const React = require('React'); to the file, is it ok?

Test Plan:

  • yarn test
  • yarn run flow
  • yarn flow-check-android
  • yarn lint

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 17, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@cpojer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jan 17, 2019
@react-native-bot
Copy link
Collaborator

@HeinrichTremblay merged commit a828db6 into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Jan 18, 2019
@react-native-bot react-native-bot added the Merged This PR has been merged. label Jan 18, 2019
@HeinrichTremblay HeinrichTremblay deleted the HeinrichTremblay-AndroidDrawerLayoutNativeComponent branch January 18, 2019 12:55
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
matt-oakes pushed a commit to matt-oakes/react-native that referenced this pull request Feb 7, 2019
Summary:
Changelog:
----------

[Android] [Changed] - As mentioned in facebook#22990, I have moved native components required by DrawerLayoutAndroid.android.js into separate files and added Flow Typing.

Question
----------
I have two questions.

It is not included in the files mentioned by facebook#22990 [comment](facebook#22990 (comment)). Perhaps we should be adding knowledge of that type to the codegen since it is quite complicated, what do you think TheSavior?

The `Props` type include `renderNavigationView: () => React.Element<any>,` and `children?: React.Node,`. Therefore I added `const React = require('React');` to the file, is it ok?
Pull Request resolved: facebook#23036

Differential Revision: D13710035

Pulled By: cpojer

fbshipit-source-id: 671423b76c3b443d85e4b63d05d6253dbd33b29c
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: Android Android applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants