mirror of
https://github.com/facebook/react.git
synced 2026-02-25 23:25:21 +00:00
* Implement CS first take This is using a pure JS API. This should probably switch to native hooks at some later point but I'll start ironing out issues at this level first. * Use async scheduling by default The scheduled callback gets called immediately in render with infinite time for now. Later this will be per root and abortable. * Fix up the type signature of the ReactNativeCSType export * Add escape hatch for special cased children Working around the fact that we can't map arbitrary children slots. Just the "children" prop. * Readd providesModule for ReactNativeCSTypes * Fix lint * Fix ReactNativeTypes providesModule and CI check * Special case a parent instance that doesn't have a props object CSCustom can be anything here. Ugly but whatevs. * Don't forget to store stateUpdater so that we can trigger updates * Fix test
16 lines
475 B
Bash
Executable File
16 lines
475 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Make sure we don't introduce accidental @providesModule annotations.
|
|
EXPECTED='packages/react-cs-renderer/src/ReactNativeCSTypes.js
|
|
packages/react-native-renderer/src/ReactNativeTypes.js
|
|
scripts/rollup/header.js'
|
|
ACTUAL=$(git grep -l @providesModule -- './*.js' ':!scripts/rollup/shims/*.js')
|
|
|
|
if [ "$EXPECTED" != "$ACTUAL" ]; then
|
|
echo "@providesModule crept into some new files?"
|
|
diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true
|
|
exit 1
|
|
fi
|