27 Commits

Author SHA1 Message Date
Alexei Malashkevich
4202892a5d Adding search to docs website (#2606)
* Adding search to docs website

* fix eslint errors
2017-09-27 09:25:27 -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
Spencer Carli
2716fe4fea Blog: A (Renewed) Path to React Navigation V1 2017-09-14 20:24:03 -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
Adam Miskiewicz
681e1c6e31
Update depenencies, update Prettier 2017-07-19 12:59:40 -07:00
Gabriel Bull
72f6331fdb Added with navitation to website’s docs (#1974) 2017-07-04 02:24:49 -04:00
Gabriel Bull
f3bb04888e Fixed website dev bug (#1973) 2017-06-26 10:02:59 -07:00
Paul McBride
48b09bfdae Fix documention header styles (#1742) 2017-06-03 12:01:13 -07:00
Daniel Schmidt
b19beda0a7 Add NavigationPlayground Expo Demo (#1523)
* use react-navigation as dependency
* add expo based playground app
* name expo playground demo in the docs
* add ci task to deploy playground demo
2017-05-15 16:55:10 -07:00
Adam Miskiewicz
ebb20ad632
Hotfix website error (maximum callstack size exceeded 2017-05-14 21:54:56 -07:00
Adam Miskiewicz
e083d4bf86
Fix website build -- needs eslint 2017-05-14 21:42:34 -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
Mike Grabowski
f2dd70a29e Add a blog post about new release (#1262)
* Create 2017-02-On-the-path-to-v1.md

* Add doc to website

* Rename 2017-02-On-the-path-to-v1.md to 2017-04-On-the-path-to-v1.md

* Update 2017-04-On-the-path-to-v1.md
2017-04-26 23:46:58 +02:00
Mike Grabowski
ba98f7a1ae Fix hashbang behaviour (#1095) 2017-04-18 15:25:12 +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
93976d358e Introducing flat options (#984)
* Initial commit

* Remove HybridExample (#985)

* Remove HybridExample

* Remove last mention of HelloHybrid

* Remove console log

* Fix flow and example

* Fix routers api docs

* Keep options in single place

* chore

* Fix styling

* Organise miscs

* Better flow type for screen options

* Flow test website and add more types to options

* navigationOptions instead of prevOptions makes more sense

* Fixes

* Fix up docs

* Fix

* Update route decl

* Provide error when removed API is used

* Remove lock

* Add validators

* Make StacksOverTabs config valid again

* Do not return

* Fix redbox
2017-04-12 15:49:08 -07:00
Elliott Ro
dff746a83c Navigation Actions Doc (#338)
* Initial saving

* Updated docs

* Adding navigation actions into website App.js

* Updated navigation prop structure

* Added in missing link
2017-03-22 12:10:34 -07:00
Mike Grabowski
e44dee158f [Docs] Link every heading automatically (#459)
* Link every heading automatically

* Factor in nav height

* Make it like in React
2017-02-27 22:38:51 -08:00
Li Lin
163d5e4c07 Add code sample for google analytics integration (#107) 2017-02-09 19:40:16 +05:30
Satyajit Sahoo
1247806f9b Make compatible with webpack (#244) 2017-02-08 13:00:58 -08:00
Satyajit Sahoo
125159040c Regenerate yarn.lock and tweak circle config 2017-02-06 07:34:15 +05:30
Jeff Carbonella
2e6f7a015f Use redux constants and action creator functions (#120) 2017-02-02 02:57:51 +05:30
Andrej Badin
7441ecad05 Don’t handle click with modifier keys. (#10) 2017-01-26 18:08:27 -08:00
Adam Miskiewicz
691aa31539
Remove basic auth on website 2017-01-26 13:16:47 -08:00
Adam Miskiewicz
b5c485d841
reactjs/react-navigation -> react-community/react-navigation 2017-01-26 13:16:26 -08:00
Adam Miskiewicz
a6b168d5a7
Update now client 2017-01-26 13:14:14 -08:00
Adam Miskiewicz
c37ad8a0a9 Initial public release of React Navigation 2017-01-26 11:53:33 -08:00