55 Commits

Author SHA1 Message Date
Spencer Carli
e139e83a1a 1.0.0-beta.13 2017-09-27 09:55:06 -05:00
Ashoat Tevosyan
b759d3136e Fix Flow types (and update RN version) (#2619)
* Fix .flowconfig to stop ignoring modules and properly include React Native libraries

Currently, there are numerous ignored libraries that are hiding type errors. Actually, they're causing type errors too. This sort of thing only patches over actual problems, so we have to revert them to get a config we can build upon.

* Update react-native/flow-bin dependencies

We want to have Flow types working with the latest packages.

* Update flow-typed libraries (auto-generated)

* Fix typing of navigation prop used by withNavigation HOC

The current typing is clearly a typo, as it is circular. `NavigationScreenProp` should be used to type the navigation prop

* Fix typing of easing function

What's funny is that I fixed this before in d71ed75133b97e33a8a683eda334b3005107d379. @skevy reintroduced the mistyped function in 9436d03fe8fface09001a5a40ce0aa8a01ad9e7e, which didn't trigger any Flow errors because .flowconfig was ignoring the entire react-native package

* Correct typing of View and Text style prop

The current code thinks it can import these, but this isn't true, and was being hidden because the .flowconfig ignored the whole react-native package. There's no easy to type Text and View at the current moment, as far as I can tell. Importing the highly generic `StyleObj` seems like the best bet, and is what I have being using in my projects.

* Import NavigationScreenComponent using full path

* Updating yarn.lock files

* Get rid of library overrides in flow-typed/react-native.js and flow/react-navigation.js

* Add @flow to src/react-navigation.js and make last three params to createNavigator optional

* Make screenProps and navigationOptions optional in NavigationNavigatorProps

* yarn run format

* Readd react-navigation/node_modules ignore to NavigationPlayground's .flowconfig

Realized this line I removed in the first commit is necessary when using npm link/yarn link, which is what the CircleCI build does

* Make all DrawerViewConfig's params optional

Some of these params are marked as optional because they have defaults. However, the only place `DrawerViewConfig` is used is as the input the function that then applies the defaults

* Make all props in NavigationNavigatorProps optional

`NavigationNavigatorProps` is used to type the props of the component that is output by the `StackNavigator`, `TabNavigator`, etc. component factories. This component does not need to have any props specified.

* Make second param to `DrawerNavigator` factory optional

`DrawerNavigator`, just like `TabNavigator` and `StackNavigator`, can be called with just a single argument (ie. omitting the config)

* Upgrade to RN 0.48.4 to address https://github.com/facebook/react-native/issues/15810
2017-09-25 11:29:34 -05:00
Sakamoto, Kazunori
98cb493449 Employ pre-commit hook for formatting code. (#2597)
This change comes thanks to @plasticine's great idea (https://github.com/react-community/react-navigation/pull/2581#issuecomment-329661371).
- Add husky and lint-staged to use pre-commit hook.
- Automate formatting JavaScript code using ESLint and Prettier before committing changes.
2017-09-15 17:17:09 -05:00
Justin Morris
ee2e27c24b Trivial: Ignore the jest setup file when calculating test coverage. (#2579)
* Ignore the jest setup file when calculating test coverage.

* Actually collect coverage from the whole library codebase so that the numbers are actually useful.
2017-09-14 21:02:09 -05:00
Spencer Carli
ba3fb1a7ee Fix Website Build (#2526)
* Update .eslintrc to allow compile.

* Resolve .web.js extension

* Look for __DEV__ on global

Fixes ReferenceError when not in the React Native environment.

* Replace __DEV__ at compile time via babel

* Don't try to lint a website build
2017-09-06 16:08:08 -05:00
Manu Bamba
c815626020 Fixed issue with tab navigation (#2527) 2017-09-06 11:42:48 -05:00
Hawken Rives
2e1624e976 pin react-native-tab-view with ~ instead of ^ (#2348)
Because react-native-tab-view insists on sticking at 0.0.*, 
the caret version pinning won't install "minor" updates.

Semver rules are weird with 0. major versions.

Is this something you'd be interested in?
2017-08-31 09:58:47 -05:00
Adam Miskiewicz
5e075e1c31
1.0.0-beta.12 2017-07-19 13:11:57 -07:00
Adam Miskiewicz
dd3290aa59
Remove generating prop-types from Flow 2017-07-19 13:11:56 -07:00
Adam Miskiewicz
2f0241d774
Update dependencies 2017-07-19 13:04:04 -07:00
Adam Miskiewicz
681e1c6e31
Update depenencies, update Prettier 2017-07-19 12:59:40 -07:00
Adam Miskiewicz
9436d03fe8
Update to RN 0.45, fix/improve flow coverage 2017-07-19 12:59:39 -07:00
Gabriel Bull
77b04f342d Removed dependency on fbjs (#1698) 2017-06-03 12:21:08 -07:00
Jacob Lauritzen
3abbb950e8 Update drawer layout polyfill to 1.3.1 (#1716) 2017-05-29 13:05:43 +05:30
Satyajit Sahoo
a3f7930c58 Upgrade React Native Tab View to v0.0.66 (#1713) 2017-05-28 19:55:49 -07:00
Adam Miskiewicz
ff2a6b1c97
1.0.0-beta.11 2017-05-23 21:53:38 -07:00
Satyajit Sahoo
934458ae8e Release beta 10 2017-05-19 21:32:42 +05:30
Adam Miskiewicz
1cd16bcf4a
Convert NavigationPlayground project to a CRNA project 2017-05-15 18:57:22 -07:00
Miguel Oller
ed0a818aee Exclude __tests__ from published files (#1525) 2017-05-15 10:33:14 -07:00
Adam Miskiewicz
96a1c1fddf Add codecov.io support 2017-05-14 21:28:38 -07:00
Adam Miskiewicz
a781c35e75 Run 'flow check' instead of 'flow' in CI 2017-05-14 21:28:38 -07:00
Adam Miskiewicz
1ae3798137 Upgrade to React Native 0.44 + Flow 0.42 2017-05-14 21:28:38 -07:00
Adam Miskiewicz
f3a958dca1 Update/Fix Prettier + Eslint config for codebase
Run Prettier/Eslint on entire codebase, fix issues
2017-05-14 14:18:09 -07:00
Satyajit Sahoo
d4b4697f33 Update react-native-tab-view. Fixes #1248, #1163 (#1327) 2017-05-10 13:34:06 +02:00
Mike Grabowski
004e9632f6 Release v1.0.0-beta.9. 2017-04-26 23:59:37 +02:00
Satyajit Sahoo
0cd3eaa97a BREAKING: Update React Native TabView (#1218) 2017-04-25 21:47:29 +02:00
Mike Grabowski
bbe9caff06 Fix eslint issues and turn on prettier by default (#1195)
* Automatically generate prop-types from Flow

* Remove propTypes usage

* Fix flow

* Modify some eslint settings

* Fix flowtype

* Lint tweaks

* use prop-types pkg

* Run prettier

* Fix flow

* Fix few lint issues

* Make eslint pass

* Run lint on tests

* Fix flow

* Fixes

* Alphabetical

* Trailing comma: ES5 for website compat, also fix config/paths

* Apply eslint --fix only to src now

* Fix missing transitionconfig

* Update TypeDefinition.js

* New stuff

* Unstage website and examples

* reformat code

* Update circle.yml
2017-04-24 17:31:22 +05:30
Rasool Dastoori
afe3c2be9e Update react-native-tab-view version (#1138)
Fix RTL support for `TabNavigator`
2017-04-21 22:11:32 +05:30
Adam Miskiewicz
e94c9c1061
v1.0.0-beta.8 2017-04-19 20:32:49 -07:00
Joe McKie
2bbfc03cd0 Bump dependency versions to reflect current RN 2017-04-18 15:04:47 +02:00
Joe McKie
633d4819ec Update flow-react-proptypes to ^1.2.0 (#1084) 2017-04-18 11:27:34 +02:00
Mike Grabowski
7165efce02 Upgrade babel-plugin-flow-prop-types (#1045)
* Fix build

* Latest version fixes Header

* Fix propTypes from react-native leaking to web context

* Update todo notice
2017-04-14 17:38:52 +05:30
Mike Grabowski
cf6564b3e5 Move prop-types to dependencies (#1042)
* Move `prop-types` to dependencies

* Update package.json

* Update CardStackTransitioner.js
2017-04-14 11:41:39 +05:30
Mike Grabowski
e2f5e7fd49 Automatically generate prop-types from Flow (#1033)
* Automatically generate prop-types from Flow

* Remove propTypes usage

* Fix flow

* Modify some eslint settings

* Fix flowtype

* Lint tweaks

* use prop-types pkg
2017-04-13 15:19:30 -07:00
Daniel Schmidt
8c9a626401 bump react-native-drawer-layout-polyfill (#882)
includes access to the accessabilityView options and
a fix for #871 (adjusted zIndex)
2017-04-01 20:40:41 +05:30
Adam Miskiewicz
619a06c8cd
Update dependencies 2017-03-15 16:02:49 -07:00
Satyajit Sahoo
00972a3bf5 Bump version number (#650) 2017-03-11 09:19:31 -08:00
Satyajit Sahoo
ecef7771e6 Update react-native-tab-view. Fixes #476 (#641) 2017-03-10 09:34:43 -08:00
Daniel Schmidt
af787e56fe move from react-native-drawer-layout to react-native-drawer-layout-polyfill
This enables us to use the native DrawerLayoutAndroid on android devices
2017-03-07 19:12:21 +05:30
Adam Miskiewicz
29a6564261
v1.0.0-beta.6 2017-02-27 18:40:16 -08:00
Satyajit Sahoo
d6b5b28811 Update react-native-tab-view (#366)
Fixes #209
2017-02-17 08:28:10 -08:00
Adam Miskiewicz
330cc054f6
1.0.0-beta.5
Fix broken `yarn publish`
2017-02-15 19:11:46 -08:00
Adam Miskiewicz
5c478ec244
1.0.0-beta.4 2017-02-15 18:57:31 -08:00
Satyajit Sahoo
a7b1243053 Fix flow (#305)
* Fix Flow and Android build

* Enable flow on CI

* Fix and suppress flow errors
2017-02-13 08:26:30 -08:00
Satyajit Sahoo
b82b8c4b3c Bump version number 2017-02-09 19:33:44 +05:30
Satyajit Sahoo
1247806f9b Make compatible with webpack (#244) 2017-02-08 13:00:58 -08:00
Satyajit Sahoo
752d876994 Bump version number 2017-02-09 01:39:38 +05:30
Satyajit Sahoo
1eabc0636b Updated react-native-tab-view
This fixes a bug where React Native Tab View was trying to keep state in sync, but state was updating at a slower speed.
2017-02-09 01:31:22 +05:30
Jakub Stasiak
aead8ff9fb Add withNavigation HOC (#137) 2017-02-06 18:58:04 +05:30
Ferran Negre
d0582d205d Set up Jest to be able to test RN UI components (#96) 2017-01-31 08:43:24 +05:30