Commit Graph

2219 Commits

Author SHA1 Message Date
Eric Vicenti
514aa00297 chore: release 1.0.0-alpha.2 2018-10-11 14:35:05 -07:00
Eric Vicenti
2ccd017f74 cleanup, add dependencies 2018-10-11 14:33:57 -07:00
Eric Vicenti
8f0236aa74 Copy from react-navigation 2018-10-11 13:50:01 -07:00
Satyajit Sahoo
2d92a4a827 chore: update issue template 2020-01-11 16:41:58 +01:00
Satyajit Sahoo
9115138e9c chore: release 0.4.1 2019-12-19 22:51:16 +01:00
Karlos Vallejo
73242b7027 fix: fix location of types (#31)
closes #33
2019-12-19 15:42:17 -05:00
Satyajit Sahoo
45a0feefcc chore: release 0.4.0 2019-12-12 16:05:33 +01:00
Satyajit Sahoo
3e5085ee46 feat: upgrade project and add example
BREAKING CHANGE: Migrate to React Navigation 4.x
2019-12-12 15:55:00 +01:00
Brent Vatne
19f6ff2896 chore: release 0.3.2 2019-09-18 12:34:05 -07:00
Brent Vatne
9742007da9 chore: run prettier 2019-09-18 12:32:53 -07:00
Brent Vatne
2994b2ffcb Merge pull request #19 from jmparsons/hotfix-types
Fixed location of types.
2019-09-18 12:29:23 -07:00
Brent Vatne
ca12ce4677 Merge pull request #21 from watanabeyu/master
fix transition and transitionVierStyle does not work
2019-09-18 12:28:57 -07:00
Brent Vatne
4f2f4e042e chore: add license 2019-08-23 17:07:26 -07:00
Brent Vatne
23c6f6cd4b chore: update readme and bump version 2019-08-23 17:04:34 -07:00
Pietro Nompleggio
5df122d9fc feat: add transitionStyle config option, closes #12 2019-08-23 17:02:12 -07:00
Brent Vatne
de917c14e7 Merge pull request #15 from dsznajder/feat/typescript
Typescript
2019-08-23 16:53:48 -07:00
Brent Vatne
3805456e90 Release 0.2.1 2019-07-03 16:17:12 -07:00
Brent Vatne
7a125df41d Merge pull request #7 from jarvisluong/patch-1
change ComponentType to Element
2019-07-03 16:16:45 -07:00
Brent Vatne
9f6720fa89 Release 0.2.0 2019-05-03 11:33:41 -07:00
Brent Vatne
fd574809d3 Merge pull request #5 from jarvisluong/patch-1
Add typescript def file
2019-05-03 11:30:11 -07:00
Brent Vatne
e7df03ea35 Merge pull request #2 from itsjgf/master
Call animateNextTransition only when activeKey has changed
2019-04-10 16:51:21 +02:00
Brent Vatne
ef2821e503 Only animate transition when index changes 2019-04-09 10:13:09 +02:00
Brent Vatne
69e4da0f25 Rename it 2019-04-06 20:40:02 +02:00
Brent Vatne
dc033e9f23 Initial commit 2019-04-06 20:21:59 +02:00
Brent Vatne
5255444030 Initial commit 2019-04-06 18:13:32 +02:00
Satyajit Sahoo
e90171bb45 chore: release 4.1.1 2020-02-04 23:31:48 +01:00
Satyajit Sahoo
8c7716f504 fix: make sure index.js is common js 2020-02-04 23:31:11 +01:00
Satyajit Sahoo
27fef7a185 fix: don't use declare module for type definitions 2020-02-04 23:18:28 +01:00
Satyajit Sahoo
ea26056ed2 chore: update LICENSE 2020-02-01 02:06:03 +01:00
Satyajit Sahoo
8b307e2c26 chore: fix node version in CI 2020-01-29 17:43:44 +01:00
Satyajit Sahoo
f22b0d09c3 chore: release 4.1.0 2020-01-29 14:54:27 +01:00
Satyajit Sahoo
838abb757f chore: update dependencies 2020-01-29 14:52:14 +01:00
William Candillon
5d3fd5bea0 feat: make ScreenProps parametrizable in TypeScript (#6496)
This change allows for the following to be written:

```tsx
const TreatmentPlanDrawerItem = createStackNavigator(
  {
    Screen: {
      screen: Screen,
     // t is of type i18next.TFunction via the type casting below.
      navigationOptions: ({ screenProps }) => ({
        title: screenProps.t('title'),
      })
    },
  } as NavigationRouteConfigMap<
    NavigationStackOptions,
    NavigationStackProp<NavigationRoute, any>,
    { t: i18next.TFunction }
  >
);
```
2020-01-23 15:41:22 +01:00
Mattia Asti
0189ff4eb3 fix: wrong type in react-navigation.d.ts (#6486)
This code is actually throwing a type error because of a wrong type declaration with the action expecting to be only a `NavigationNavigateAction` while in reality any action can be dispatched not only the `navigate`.
```jsx
      StackActions.replace({
        routeName: 'MyRoute1',
        // this action is throwing a type error
        action: StackActions.push({
          routeName: 'MyRoute2',
        }),
      }),
```
2020-01-23 14:40:08 +00:00
alburkerk
1c30ac07e4 feat: allow navigation params to be typed in navigate method (#6444)
Motivation
We can type navigation params in component by writing something like this in component props declaration :

export interface SomeNavigationParams {
  foo: string;
  bar: number;
}

export interface Props {
  navigation: NavigationScreenProp<any, SomeNavigationParams>;
}
But when we are navigating to this screen, we only call navigate method without any type checking.

// Next line doesn't trigger ts error
this.props.navigation.navigate('MyRouteName', { foo: "foo", bar: "bar"})
By making navigate a generic method, we can type those params correctly

import { SomeNavigationParams } from '@Screens/....../SomeScreen.types.ts'

......
// Next line triggers an error
this.props.navigation.navigate<SomeNavigationParams>('MyRouteName', { foo: "foo", bar: "bar"});
......
Test plan
No .js code so it's can't be breaking anything. Plus, can't also break typing as changes are seamless for react-navigation API.
2020-01-23 12:19:32 +01:00
Frieder Bluemle
8438221632 Fix typos (#6579) 2020-01-23 03:16:52 -08:00
Satyajit Sahoo
653a119b91 chore: update issue template 2020-01-11 16:28:07 +01:00
Satyajit Sahoo
960ce843ae fix: remove drawer methods from navigation prop 2020-01-04 15:41:46 +01:00
Satyajit Sahoo
f21c7004fa chore: upgrade depenendecies 2020-01-04 15:40:30 +01:00
imgbot[bot]
87f2ba0464 chore: optimize images (#6544)
*Total -- 138.77kb -> 80.11kb (42.27%)

/example/src/assets/splash.png -- 133.30kb -> 75.22kb (43.57%)
/example/src/assets/dog-back.png -- 4.55kb -> 3.98kb (12.57%)
/example/src/assets/back.png -- 0.92kb -> 0.91kb (0.96%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: Imgbot <help@imgbot.net>
2020-01-03 11:37:07 +01:00
Satyajit Sahoo
7e25d0fe96 chore: close stale issues automatically 2019-11-18 02:08:33 +01:00
KUBO
7219cac9f4 fix: remove params in NavigationJumpToAction (#6360)
* fix: remove params in NavigationJumpToAction

* Update react-navigation.d.ts
2019-10-16 23:12:33 +09:00
KUBO
d760da796d fix: make params required in NavigationSetParamsActionPayload (#6343) 2019-09-30 06:36:15 +09:00
Brent Vatne
541ad54b7e chore: release 4.0.10 2019-09-25 17:54:13 -07:00
Brent Vatne
0f42057c8e fix: update link to docs page from deprecation messages 2019-09-25 17:47:20 -07:00
Ashoat Tevosyan
447413128b [flow] Remove Flow libdef from repo (#6327) 2019-09-25 20:45:49 -04:00
satyajit.happy
a28be3b502 chore: release 4.0.9 2019-09-24 13:23:53 +02:00
satyajit.happy
f58c06f192 fix: fix types for switch navigator. fixes #6324 2019-09-24 13:16:11 +02:00
satyajit.happy
8f2a0aa240 chore: release 4.0.8 2019-09-23 22:35:38 +02:00
satyajit.happy
eaebe5d46d fix: add type aliases for switch navigator. fixes #6324 2019-09-23 22:34:14 +02:00