Comments (21)
Why is this not published yet??
from hooks.
is anybody dealing with this?
from hooks.
For anyone that want to use it right now, you can use this one. ๐
package.json
{
...
"react-navigation-hooks": "npm:@zhigang1992/react-navigation-hooks@latest",
...
}
from hooks.
Great!
I hope to have some PR soon.
from hooks.
I merged the PR here and you can get the types starting 1.0.2-alpha.0
from hooks.
Yep, types are not published:
https://unpkg.com/[email protected]/dist/Hooks.d.ts
we can use types or typings with TS
from hooks.
Created a first PR on typescript environment and tooling only: #10
from hooks.
Can confirm that republishing works. It looks like the published version was using another workflow instead of the most recent one, so the types were not being generated/published.
I made a simple test that proves that (note the -test
suffix on the package's name):
I really just ran yarn publish
.
from hooks.
@brentvatne @satya164 hi, do you have publish access on this repo?
from hooks.
Hey, As ReactNavigation will be in typescript (i think?) maybe we should just write this lib in typescript too?
Btw why not use @react-navigation/hooks package name? Is this package different from other navigation packages?
from hooks.
TS support would definitely be an appreciated contribution!
The reasoning behind the react-navigation-hooks
name is that it is a testing ground for now, before hooks are stable. Once react-nav starts depending on react 16.7+, we can move this to /core
.
from hooks.
@ericvicenti I want to contrib rewriting this package in typescript. I would like to know if there is any problem in upgrade it to babel 7
?
from hooks.
Feel free to upgrade us to babel 7, I think that would be great
from hooks.
Now is done. Waiting for PR get merged.
I'm planing to add a example repo to.
from hooks.
Can't use it yet. Am I doing something wrong? There's no .d.ts file
from hooks.
@zaguiini this is happening because the property on the package.json
should be typings
and currently is types
. I've created #15 to fix that.
from hooks.
I donโt think so, @kevinwolfcr, because some packages I publish to npm doesnโt have this field too and the typings work. Probably the d.ts
files aren't published
from hooks.
@ericvicenti could you republish with types? Or share publish right with me or someone else if you are busy? thanks
from hooks.
is anybody dealing with this?
Best you can do right now is to create a declaration file by yourself inside your project...
from hooks.
Still need types please!
from hooks.
Hi,
Can you try this please?
yarn add [email protected]
I've made a PR to update the TS env to use babel ts plugin through Bob. It's not yet merged yet (because I have a problem setting up jest/tests) but still made a release so that people here can try the ts types.
from hooks.
Related Issues (20)
- Proper way to use react-navigation-hooks with storybook HOT 2
- Types are missing and causing errors HOT 18
- react-navigation-hooks v2 HOT 2
- setTopLevelNavigator support for hooks HOT 2
- Getting error 'from' expected HOT 2
- useFocusEffect should not retrigger on re-render HOT 8
- I can't define NavigationParams types with useNavigation HOT 1
- Reset Stack HOT 1
- Proposal: Ability to pass params for tabBarOnPress defaultHandler function HOT 1
- setParams entity change when is called HOT 1
- useFocusEffect should handle drawers HOT 4
- useNavigation shouldn't be in @react-navigation/native? HOT 3
- Open&Close Drawer HOT 1
- Hooks on the web - react-navigation is now directly imported HOT 3
- useNavigation give the warning "can't perform a React state update on an unmounted component" HOT 1
- Can I reproduce events like "onEnter/onExit" ? HOT 6
- "THIS ISSUE WAS DELETED AND BLOCKED"
- Include v5 patching for users converting from v4 to v5? HOT 1
- useNavigation not working HOT 1
- How i can re-render with useNavigationParam ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hooks.