Satyajit Sahoo
f49b0d3a3b
refactor: migrate to Pressable
2021-02-22 00:47:04 +01:00
Satyajit Sahoo
205f297d07
chore: fix warnings in tests
2021-02-22 00:15:54 +01:00
Satyajit Sahoo
0fc718b49d
chore: upgrade @types/react-native
2021-02-21 23:39:54 +01:00
Satyajit Sahoo
26351254fc
chore: fix warnings from module-resolver
2021-02-21 23:32:18 +01:00
Satyajit Sahoo
d6466b7a4b
feat: allow returning null or undefined to skip actions with dispatch
2021-02-21 21:27:26 +01:00
Satyajit Sahoo
02a031e46e
feat: warn on duplicate screen names across navigators
2021-02-21 21:19:52 +01:00
Satyajit Sahoo
61c6bb01b9
fix: address breaking change in react-native for Linking
2021-02-21 15:42:02 +01:00
Satyajit Sahoo
61e653d7c4
fix: fix getId being called for incorrect routes. closes #9343
2021-02-21 15:38:53 +01:00
Satyajit Sahoo
ca1c1622be
chore: add missing elements dependency for navigators
2021-02-13 01:13:17 +01:00
Satyajit Sahoo
9a0774ec35
chore: fix icon name for tab examples
2021-02-11 18:59:50 +01:00
Satyajit Sahoo
55e6f3dd33
refactor: move Header to elements package
2021-02-11 18:56:40 +01:00
Satyajit Sahoo
86a2b09a43
refactor: refactor bottom tab view to a function component
2021-02-05 16:10:15 +01:00
Satyajit Sahoo
509ca49b64
refactor: move more header stuff to elements package
2021-02-04 15:07:22 +01:00
Satyajit Sahoo
07ba7a9687
feat: initial implementation of @react-navigation/elements
2021-01-29 20:11:23 +01:00
Satyajit Sahoo
c345ef1d0b
fix: fix transparent modal on web
2021-01-29 17:45:56 +01:00
Satyajit Sahoo
865d8b3e51
fix: fix drawer screen content not being interactable on Android
2021-01-29 17:45:43 +01:00
Satyajit Sahoo
af53dd6548
fix: fix pointerEvents in ResourceSavingScene
...
fixes #9241 , fixes #9242
2021-01-29 17:45:31 +01:00
Petra Daneva
52dbe4bd66
feat: add pressColor and pressOpacity props to drawerItem ( #8834 )
...
Co-authored-by: Petra Daneva <p.daneva@dineout.bg >
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2021-01-29 17:45:00 +01:00
sharifhh
3367ddf9df
fix: fix StackRouter incorrectly handling invalid route if key is present
2021-01-29 17:35:32 +01:00
Satyajit Sahoo
b735de153c
fix: fix drawer and bottom tabs not being visible on web. closes #9225
2021-01-29 17:35:09 +01:00
Satyajit Sahoo
fd034fea35
fix: normalize prefix when parsing. fixes #9081
2021-01-22 13:41:28 +01:00
Satyajit Sahoo
cda6397b89
refactor: don't use a boolean for drawer status
...
BREAKING CHANGE: Drawer status is now a union ('open', 'closed') instead of a boolean. This will let us implement more types of status in future.
Following this the following exports have been renamed as well:
- getIsDrawerOpenFromState -> getDrawerStatusFromState
- useIsDrawerOpen -> useDrawerStatus
2021-01-15 12:49:20 +01:00
Satyajit Sahoo
79a85a431c
refactor: don't use absolute position for header
...
BREAKING CHANGE: We now use flexbox for header elements which could break some existing style code which relied on absolute positioning.
2021-01-15 12:06:59 +01:00
Satyajit Sahoo
22a8afac74
feat: don't hardcode header back test ID
...
BREAKING CHANGE: Now the back button test ID can be customized using headerBackTestID option
2021-01-15 11:35:29 +01:00
Satyajit Sahoo
4954d6aae3
fix: enable detachInactiveScreens by default on web for better a11y
2021-01-14 14:53:35 +01:00
Satyajit Sahoo
6c5e196459
chore: wrap example list in SafeAreaView
2021-01-14 14:42:33 +01:00
Satyajit Sahoo
e86ce7bcb7
chore: update Reactiflux instructions
2021-01-14 12:45:53 +01:00
youngjuning
6c3cccf877
feat: export TransitionPreset for custom TransitionPresets ( #9173 )
2021-01-14 12:39:15 +01:00
Dulmandakh
db6bdb0430
chore: set displayName for LinkingContext ( #9202 )
...
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2021-01-14 12:30:46 +01:00
Dulmandakh
c9d31bafdb
chore: set displayName for ThemeContext ( #9201 )
...
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2021-01-14 12:30:36 +01:00
Satyajit Sahoo
52dd4e7ac9
fix: support sync getInitialURL in native useLinking
2021-01-14 03:34:41 +01:00
Satyajit Sahoo
15b8bb3458
feat: add a way to specify an unique ID for screens
...
With this, the user will be able to specify a `getId` function for their screens which returns an unique ID to use for the screen:
```js
<Stack.Screen
name="Profile"
component={ProfileScreen}
getId={({ params }) => params.userId}
/>
```
This is an alternative to the `key` option in `navigate` with several advantages:
- Often users specify a key that's dependent on data already in params, such as `userId`. So it's much easier to specify it one place rather than at every call site.
- Users won't need to deal with generating a unique key for routes manually.
- This will work with other actions such as `push`, and not just navigate.
- With this, it'll be possible to have multiple instances of the screen even if you use `navigate`, which may be desirable in many cases (such as profile screens).
2021-01-14 03:33:44 +01:00
Satyajit Sahoo
802db004ae
chore: upgrade dependencies
2021-01-08 13:59:24 +01:00
Satyajit Sahoo
b376e9c5ed
fix: fix typo for default prop in drawer
2020-12-10 01:49:27 +01:00
Satyajit Sahoo
03ba1f2930
fix: fix default screen options not being respected
2020-12-04 00:34:16 +01:00
Satyajit Sahoo
69d333f6c2
fix: fix initial metrics on server
2020-12-03 02:19:54 +01:00
Satyajit Sahoo
068a9a456c
feat: move lazy to options for bottom-tabs and drawer
...
BREAKING CHANGE: The lazy prop now can be configured per screen instead of for the whole navigator. To keep previous behavior, you can specify it in screenOptions
2020-12-03 02:05:13 +01:00
Satyajit Sahoo
65d8b487f8
chore: upgrade to typescript 4.1
2020-12-03 01:56:28 +01:00
Satyajit Sahoo
12b893d7ca
fix: drop usage of Dimensions in favor of metrics from safe-area-context
2020-12-03 01:40:00 +01:00
Satyajit Sahoo
73aad00f19
chore: fix listing packages in metro config
2020-12-03 01:00:28 +01:00
Satyajit Sahoo
f137a84a80
chore: tweak comment for getParent
2020-12-02 21:15:29 +01:00
Satyajit Sahoo
8bdc6c6b9b
fix: default to backBehavior: firstRoute for TabRouter
...
BREAKING CHANGE: Returning to first route after pressing back seems more common in apps. This commit changes the default for tab and drawer navigators to follow this common practice. To preserve previous behavior, you can pass backBehavior=history to tab and drawer navigators.
2020-12-02 21:06:32 +01:00
Satyajit Sahoo
7c1cd261bf
feat: add a new backBehavior: firstRoute for TabRouter
2020-12-02 20:35:09 +01:00
Satyajit Sahoo
c361795d97
fix: print an error when passing a second argument to useFocusEffect
2020-12-02 20:27:34 +01:00
Satyajit Sahoo
5a9a1edae7
feat: stop exporting useLinking hook
...
BREAKING CHANGE: we have added linking prop for the same use case which is easier to use. so no need to export useLinking anymore.
2020-11-29 17:59:17 +01:00
Satyajit Sahoo
33b474ef64
chore: fix typo in workflow
2020-11-29 17:56:21 +01:00
Satyajit Sahoo
ca50b172f9
chore: bump github scripts
2020-11-29 17:56:13 +01:00
Satyajit Sahoo
d72a7bdea2
chore: add a label for first pull request
2020-11-29 17:56:01 +01:00
Satyajit Sahoo
a93e1d85f0
chore: only count repro from user's github repos
2020-11-29 17:55:51 +01:00
Satyajit Sahoo
14ac256af3
fix: force dismiss keyboard if there was no gesture
...
closes #9078
2020-11-21 05:28:25 +01:00