Commit Graph

40 Commits

Author SHA1 Message Date
Steven Conaway
84aea698f2 docs: fix grammar issue in a readme 2020-06-22 16:23:20 +02:00
Satyajit Sahoo
bf1ee2d9ff chore: master -> main 2020-06-16 21:42:22 +02:00
Satyajit Sahoo
95b044ecf9 feat: add devtools package (#8436)
The `devtools` package extracts the redux devtools extension integration to a separate package. In future we can add more tools such as flipper integration to this package.

Usage:

```js
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { useReduxDevToolsExtension } from '@react-navigation/devtools';

export default function App() {
  const navigationRef = React.useRef();

  useReduxDevToolsExtension(navigationRef);

  return (
    <NavigationContainer ref={navigationRef}>{/* ... */}</NavigationContainer>
  );
}
```
2020-06-15 13:53:17 +02:00
Rajendran Nadar
e000138fe5 chore: add v5 package versions in readme (#8413) 2020-06-15 10:13:44 +02:00
Satyajit Sahoo
cff2d06adc chore: update contributing guidelines 2020-02-10 09:22:56 +01:00
Satyajit Sahoo
4c9f87df6d chore: update contributing guidelines 2020-02-10 09:17:19 +01:00
Satyajit Sahoo
abb595830e chore: update README 2020-02-07 14:10:08 +01:00
Satyajit Sahoo
a121844148 chore: prepare for stable release (#354) 2020-02-05 14:47:36 +01:00
Satyajit Sahoo
d14c471385 docs: add instructions for forks 2020-01-12 01:23:16 +01:00
Satyajit Sahoo
a23dfd419d chore: remove nohoist from example 2020-01-10 13:12:32 +01:00
Satyajit Sahoo
f91d16cd5d chore: update readme 2020-01-07 05:14:04 +01:00
Satyajit Sahoo
eef17a801e refactor: import from /native instead of /core 2019-12-11 17:44:21 +01:00
Satyajit Sahoo
941249dba9 refactor: rename createNavigator since it doesn't create a navigator 2019-11-10 20:12:32 +01:00
satyajit.happy
fc37e93b5b chore: add some badges 2019-08-27 17:09:59 +02:00
satyajit.happy
fb9d1837a1 chore: configure jest to resolve source files for packages 2019-08-27 08:58:29 +02:00
satyajit.happy
9e1104c31f feat: add hook to scroll to top on tab press 2019-08-24 12:14:49 +05:30
satyajit.happy
1c2e5de07a chore: configure publishing packages 2019-08-21 18:12:43 +05:30
satyajit.happy
6b9af77fab chore: configure lerna with bob 2019-08-21 14:27:07 +05:30
satyajit.happy
797b02bd8e refactor: check for stale == false to determine if state is rehydrated 2019-08-19 17:02:03 +05:30
satyajit.happy
48bdbe43a9 docs: fix missing prop in container 2019-08-19 15:20:55 +05:30
satyajit.happy
828e17eb5a docs: add info about back button and deep link 2019-08-19 15:09:58 +05:30
satyajit.happy
396bf3c081 docs: add info for contributing in README 2019-08-18 12:03:28 +05:30
satyajit.happy
10a6bfdbb1 refactor: use named exports for navigators 2019-08-14 06:08:44 +05:30
Satyajit Sahoo
2b59f7e482 feat: add a useIsFocused hook to get focus state (#52) 2019-08-13 21:11:39 +01:00
satyajit.happy
71f4ef1a92 refactor: standardize event argument 2019-08-06 17:51:06 +02:00
satyajit.happy
fd1c5fd0bb docs: add notes about architectural differences 2019-08-06 16:59:39 +02:00
satyajit.happy
819b7904fa feat: add a useFocusEffect hook 2019-08-01 12:38:58 +02:00
satyajit.happy
fb8d3024bf feat: add focus and blur events 2019-08-01 12:34:54 +02:00
satyajit.happy
78ccf49627 fix: combine options and fix state type in CompositeNavigationProp 2019-07-23 13:23:39 +02:00
satyajit.happy
2eb86cd215 feat: add a setOptions method to set screen options
In React Navigation, the screen options can be specified statically. If you need to configure any options based on props and state of the component, or want to update state and props based on some action such as tab press, you need to do it in a hacky way by changing params. it's way more complicated than it needs to be. It also breaks when used with HOCs which don't hoist static props, a common source of confusion.

This PR adds a `setOptions` API to be able to update options directly without going through params.
2019-07-22 20:50:53 +02:00
satyajit.happy
2b819e4310 feat: improve types for options and support a function 2019-07-22 12:21:40 +02:00
satyajit.happy
38aa8e447b docs: update README to match latest API 2019-07-18 22:09:44 +02:00
satyajit.happy
db6fe6bb1e refactor: add separate method for rehydration and fix types 2019-07-14 18:42:30 +02:00
satyajit.happy
06a3fbc13d docs: update README 2019-07-13 05:19:10 +02:00
satyajit.happy
580f909957 docs: add info about type checking to the README 2019-06-11 15:39:02 +02:00
satyajit.happy
44909bd80a refactor: minor tweaks 2019-06-10 01:57:42 +02:00
satyajit.happy
00fdd13356 docs: add info about how initial state is handled 2019-06-09 21:11:57 +02:00
satyajit.happy
fc1a4adc74 chore: initial POC 2019-06-09 19:37:23 +02:00
satyajit.happy
09e1edf510 chore: configure some stuff 2019-06-09 16:55:47 +02:00
Satyajit Sahoo
32139afa3e Initial commit 2019-06-09 14:45:27 +00:00