mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +08:00
Introduces a monorepo structure, relies on yarn workspaces to share
dependencies, and lerna for syncing versions across the monorepo.
* Create 2 workspaces:
'packages' and 'website'
* Create 2 public packages:
'babel-plugin-react-native-web' and 'react-native-web'
* Create 1 private package:
'benchmarks'
A simple release script runs the tests, builds the package assets,
increments the package version numbers, git commits and tags, publishes
the package to npm, pushes the changes to github, and releases the
website update.
Close #657
36 lines
1.3 KiB
JavaScript
36 lines
1.3 KiB
JavaScript
// flow-typed signature: 3eaa1f24c7397b78a7481992d2cddcb2
|
|
// flow-typed version: a1a20d4928/prop-types_v15.x.x/flow_>=v0.41.x
|
|
|
|
type $npm$propTypes$ReactPropsCheckType = (
|
|
props: any,
|
|
propName: string,
|
|
componentName: string,
|
|
href?: string
|
|
) => ?Error;
|
|
|
|
declare module 'prop-types' {
|
|
declare var array: React$PropType$Primitive<Array<any>>;
|
|
declare var bool: React$PropType$Primitive<boolean>;
|
|
declare var func: React$PropType$Primitive<Function>;
|
|
declare var number: React$PropType$Primitive<number>;
|
|
declare var object: React$PropType$Primitive<Object>;
|
|
declare var string: React$PropType$Primitive<string>;
|
|
declare var any: React$PropType$Primitive<any>;
|
|
declare var arrayOf: React$PropType$ArrayOf;
|
|
declare var element: React$PropType$Primitive<any>; /* TODO */
|
|
declare var instanceOf: React$PropType$InstanceOf;
|
|
declare var node: React$PropType$Primitive<any>; /* TODO */
|
|
declare var objectOf: React$PropType$ObjectOf;
|
|
declare var oneOf: React$PropType$OneOf;
|
|
declare var oneOfType: React$PropType$OneOfType;
|
|
declare var shape: React$PropType$Shape;
|
|
|
|
declare function checkPropTypes<V>(
|
|
propTypes: $Subtype<{ [_: $Keys<V>]: $npm$propTypes$ReactPropsCheckType }>,
|
|
values: V,
|
|
location: string,
|
|
componentName: string,
|
|
getStack: ?() => ?string
|
|
): void;
|
|
}
|