Comments (11)
Don't work react-native 0.64 sintaxe error in import module...
Same issue on .60.5.
The Import Error caused by
import * from 'react-navigation-hooks'
can be worked around by just importing each module separately.
e.g.
import { useNavigation, useNavigationState } from 'react-navigation hooks
from hooks.
import * from 'react-navigation-hooks'
@Jta26 : This is not a valid ES import in the first place
Don't work react-native 0.64 sintaxe error in import module...
@mensonones RN 0.64 does not exist yet and you don't provide any error message. People are able to import this lib successfully already (including me)
This project was developed initially at a time where RN didn't support hooks. It was developed against a react-native-web project and Eric couldn't at that time test it in a real RN app easily.
This project does work in RN (despite some bugs and the contribution experience is not great) so I'm closing this issue.
#38 should fix many bugs regarding focus and event system, will be merged soon
#28 should bring an example app to make it easier to test contributions in a real app
#2 is the issue about writing a test suite
from hooks.
Just tried useNavigation
and it works great!
With these dependencies: (rn 0.57.5 from facebook/react-native#21967 (comment))
"dependencies": {
"react": "^16.7.0-alpha.2",
"react-native": "npm:@brunolemos/react-native",
"react-native-gesture-handler": "^1.0.9",
"react-native-screens": "^1.0.0-alpha.16",
"react-navigation": "^3.0.0",
"react-navigation-hooks": "^1.0.0-alpha.2"
},
from hooks.
I can confirm that too..
from hooks.
I am currently writing a full app using react native alpha, I'll let you know about the issues I might run into. I am going with an approach without redux but so far its working fine.
from hooks.
Hi, It is really really great ! last day I wrote a lot of RN StackNavigation Pages . In the dreaming ,I realize it must be a good idea use react-hooks to handle react-navigation event. so , I find this repo.
I'm so excited.Thanks!
from hooks.
Don't work react-native 0.60.4 sintaxe error in import module...
from hooks.
Hey, @slorber . Sorry, I didn't realize that I had spelled the wrong version. Adjusted...
from hooks.
what's the syntaxe error message and the version of the lib you are using @mensonones , i can't do anything without more infos
from hooks.
There's some documentation or guide about how to test with jest?
from hooks.
@moyolvera you can check #16
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.