-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Make it possible to develop without copying library to node_modules #105
Conversation
@@ -6,7 +6,7 @@ | |||
|
|||
#import <React/RCTLog.h> | |||
#import <React/RCTUIManager.h> | |||
#import "RCTComponentData.h" | |||
#import "React/RCTComponentData.h" |
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.
This appears not ot change anything, but make example compilable
Example/package.json
Outdated
"test": "jest", | ||
"postinstall": | ||
"rm -rf node_modules/react-native-reanimated/{.git,node_modules,Example}" | ||
"postinstall": "mkdir node_modules/react-native-reanimated2 && ln -s ../../../android node_modules/react-native-reanimated2/android && ln -s ../../../package.json node_modules/react-native-reanimated2/package.json" |
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.
symlinks fron android
and package.json
are required by android compiler. Didn't manage to do it without it
Example/android/app/build.gradle
Outdated
@@ -137,7 +137,7 @@ android { | |||
} | |||
|
|||
dependencies { | |||
compile project(':react-native-reanimated') | |||
compile project(':react-native-reanimated2') |
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.
in order to avoid namespace conflict
* Fix some Android issues in the example app * Some more adjustments * Move css example app to css-example, restore fabric-example
* Fix some Android issues in the example app * Some more adjustments * Move css example app to css-example, restore fabric-example
Inspired by: https://github.com/callstack/react-native-paper/tree/master/example
and https://blog.callstack.io/adding-an-example-app-to-your-react-native-library-d23b9741a19c
cc: @satya164 😻, thanks!