Skip to content

Commit

Permalink
Issue #10: Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Anes Abismail authored and pocmo committed Oct 1, 2020
1 parent 8674b94 commit 4cae10a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ import recompose.ast.attributes.ViewAttributes
import recompose.ast.values.InputType
import recompose.visitor.Visitor

/**
* Data class holding the attributes of a parsed `<EditText>`.
*
* https://developer.android.com/reference/android/widget/EditText
*/
data class EditTextNode(
override val view: ViewAttributes,
val text: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import recompose.ast.values.InputType
import recompose.parser.Parser

/**
* Parses an orientation attribute (from `android:inputType`) and returns the matching [InputType]
* Parses an inputType attribute (from `android:inputType`) and returns the matching [InputType]
* object. Throws [Parser.ParserException] if the inputType could not be parsed.
*/
internal fun XmlPullParser.inputType(): InputType {
Expand Down

0 comments on commit 4cae10a

Please sign in to comment.