Skip to content

Commit

Permalink
Add annotation processor for @ReactProp
Browse files Browse the repository at this point in the history
Summary:
The annotation processor finds subclasses of ViewManager and ShadowNode and generates classes that can both provide a mapping of property names to their type as well as a way of setting these properties.

This avoids having to do reflection to find the properties.

The annotation processor is currently not working when building with Gradle.

public

Reviewed By: astreet

Differential Revision: D2748958

fb-gh-sync-id: ded5b072d236ebf19fb43eaf704fc7f221a82c26
  • Loading branch information
lexs authored and facebook-github-bot-4 committed Jan 7, 2016
1 parent c1b7a36 commit 57f6cbb
Show file tree
Hide file tree
Showing 8 changed files with 880 additions and 37 deletions.
3 changes: 3 additions & 0 deletions ReactAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ android {
jni.srcDirs = []
jniLibs.srcDir "$buildDir/react-ndk/exported"
res.srcDirs = ['src/main/res/devsupport', 'src/main/res/shell']
java {
exclude 'com/facebook/react/processing'
}
}

tasks.withType(JavaCompile) {
Expand Down
Loading

0 comments on commit 57f6cbb

Please sign in to comment.