-
Notifications
You must be signed in to change notification settings - Fork 78
Conversation
Generated by 🚫 dangerJS |
transformer/upstream.js
Outdated
const {compactMapping} = require('react-native/packager/src/Bundler/source-map'); | ||
const {compactMapping} = require('./src/Bundler/source-map'); | ||
|
||
import type {Plugins as BabelPlugins} from 'babel-core'; |
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.
Here are the offensive import
s
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.
Oooh, they are in the updated file. I was going off of the code base in master as-is.
Ok this should be easy. Something like const BabelPlugins = require("babel-core").Plugins
@sarahscott I’ve cut a release of Relay with the RN 0.45 compatibility release: https://github.com/alloy/relay/releases/download/v0.9.3%2Breact-native-0.45-fix/react-relay-0.9.3.react-native-0.45-fix.tgz |
a3e11b1
to
c9d6f96
Compare
* back Enzyme or something similar once we figure out compatibility issues with RN 0.45+ | ||
*/ | ||
rail.state = { didPerformFetch: true } | ||
|
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.
Oh, this is probably due to setState
being async, you need to use something like setImmediate
to perform assertions on the next runloop tick.
@@ -15,7 +15,7 @@ target 'Emission' do | |||
pod 'Emission', :path => '../' | |||
|
|||
# As this runs dev, we need the developer web socket | |||
pod 'React', :path => react_path, :subspecs => %w(RCTWebSocket) | |||
pod 'React', :path => react_path, :subspecs => %w(DevSupport BatchedBridge RCTAnimation) |
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.
The RCTAnimation
subspec causes problems, but I can build Emission if this postinstall script is included in 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.
Where's the addition to our 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.
I'll add it now - wasn't sure if we actually wanted to use it or not.
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.
There doesn't appear to be another simple way around that, no?
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.
I haven't found one. The Gene
container relies on react-native-parallax-scroll-view
, which uses Animated
. However, the ArtistCard
also uses Animated
and works fine without RCTAnimation
, so perhaps there is a way around it? With the post-install
script and RCTAnimation
, though, the Gene
error is solved, so maybe it's a good idea to include it if we can.
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.
ArtistCard
uses the pure JS animation library, so it’s not using the pod like the Gene
one is.
a349081
to
e0eb33d
Compare
c2f4641
to
beb89ab
Compare
I can reproduce the CI test failures by running the tests ‘in band’, i.e. |
It happens in |
Commenting out this component makes it go away. The component is essentially a |
That sounds 👍 to me, it's not testing any work from the input itself |
b309860
to
528cfbf
Compare
Can you add a CHANGELOG entry? I think it should then be green, in which case please go ahead and merge 👍 |
merging! |
🍾 |
"clean-example": "cd Example && xcodebuild -workspace Emission.xcworkspace -scheme Emission -destination 'platform=iOS Simulator,name=iPhone 6' clean", | ||
"type-check": "tsc --noEmit --pretty", | ||
"lint": "tslint 'src/**/*.{ts,tsx}'", | ||
"lint-fix": "npm run lint -- --fix", | ||
"ci": "npm run type-check && npm run lint && npm run test -- --runInBand", | ||
"danger": "danger", | ||
"start": "npm run clean-example && concurrently --kill-others 'npm run start-packager' 'npm run storybook'", |
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.
Was there a reason that storybooks were removed from the app? I don't see a mention in the PR body
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.
Shipped #585 to fix it 👍
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.
Thanks!
React.PropTypes
toPropTypes
from the new standalone packageRCTAnimation
subspec error ([iOS][cocoapods] 'RCTAnimation/RCTValueAnimatedNode.h' file not found facebook/react-native#13198)SearchResults
test failure in CITested on Device?
How to get set up with this PR?
To run on your computer:
Then run
xcrun simctl launch booted net.artsy.Emission
once a the simulator has finished bootingTo run inside Eigen (prod or beta) or Emission (beta): Shake the phone to get the Admin menu.
If you see "Use Staging React Env" - click that and restart, then follow the next step.
Click on "Choose an RN build" - then pick the one that says: "X,Y,Z"
Note: this is a TODO for PRs, currently you can only do it on master commits.