-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update the Modal component #64
base: master
Are you sure you want to change the base?
Conversation
* | ||
* See https://reactnative.dev/docs/modal.html | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved the updated comments directly above the declared component so that it can be parsed by react-docgen.
Libraries/Modal/Modal.js
Outdated
events will not be emitted as long as the modal is open. | ||
|
||
@type {@platform android, Platform.isTVOS}{@required yes} function | ||
@type {@platform (others)}{@required no} function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9cafa0b
to
627286d
Compare
Libraries/Modal/Modal.js
Outdated
| Type | Required | Platform | | ||
| -------- | -------- | ------------------------ | | ||
| function | Yes | Android, Platform.isTVOS | | ||
| function | No | (Others) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jevakallio As a special case I added the whole markdown table. How does this look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing the table from description works but we cannot get rid of the autogenerated table.
* Update the title and prop description from docs. * Remove asterisks from the comments. * Add snackplayer example. * Add platform annotation for platfroms. * Cap comments to 80 characters and add annotations
bb2e334
to
b3c016b
Compare
Fixes #63
Summary
The PR is towards fixing the documentation of the Components in react-native by updating the code comments in synchronisation with the actual documentation(react-native-website). The project is a part of MLH fellowship program and involves the automatic generation of the website docs from code comments and flow types as the end result.
To learn more about the project you can visit the project wiki:
Link to the documentation(the source of truth):
Changes
Changelog
[General] [Changed] - Update the code comments in
modal.js
to synchronise with the react-native documentation.Test Plan
All changes are made to the code comments and thus there is no need for testing.