Comments (9)
If you are using React 16 then this is likely a problem related to the PropTypes, which in react 16 have to be imported separately, like this: import PropTypes from 'prop-types'
from react-native-action-sheet.
I don't have any PropTypes in my app and i get the error msg when i add the import of action sheet.
import { ActionSheetProvider } from "@expo/react-native-action-sheet";
But action-sheet import PropTypes from prop-types
and not react.
So i don't see why i get this error.
from react-native-action-sheet.
You may want to check in the .js files in the @expo/react-native-action-sheet on your machine. When I did the npm install of the repo yesterday, what came down was not the latest version of the code and the PropTypes were the issue for me as well
from react-native-action-sheet.
You are right, the latest version on npm is not the last version.
@0.4.0 still uses PropTypes from 'react'.
from react-native-action-sheet.
#64
Can you help with this issue? @ER1011 @wcastand
from react-native-action-sheet.
The latest version on npm export an old version that still use PropType from React.
Any way we can help to push the new version to npm ?
https://unpkg.com/@expo/[email protected]/
from react-native-action-sheet.
+1 getting this error as well when using react 16
from react-native-action-sheet.
same here for me
from react-native-action-sheet.
👋
@ggepenyan
@townmulti
@wcastand
@maxushuang
This should be fixed with v1.0.2:
https://www.npmjs.com/package/@expo/react-native-action-sheet
from react-native-action-sheet.
Related Issues (20)
- callback not refreshing after calling it first time. HOT 1
- sheet not show in 'fullscreenmodal' stack HOT 2
- Two bugs with the new version 4.0.0 HOT 4
- Jest : Cannot read properties of undefined (reading 'SelectableBackground') HOT 3
- Support for automated tests HOT 3
- Allowing to await the callback result and return a result HOT 2
- Best way to get the height of the Action Sheet? HOT 2
- useModal not working on iOS with useCustomActionSheet="true" HOT 1
- [Android] Action sheet text gets cut-off HOT 1
- [Android] Action sheet text gets cut-off HOT 4
- ERROR TypeError: Cannot read property 'length' of undefined HOT 4
- [Android] Screen reader treats title as a selectable option
- [Feature] It would be great, if we could change the background of buttons HOT 2
- Feat: Support new iOS dismissActionSheet() static method
- [web] expo sdk >47 setNativeProps fix HOT 3
- [Android] Last option unavailable when windowTranslucentNavigation = true HOT 2
- I put the images into this repo, as that appears to be the pattern used now.
- Doesn't work with react-native version 0.72.6 with fabric enabled on Android physical device
- long list => CancelButton need to scroll to press
- Unable to close action sheet when redirected
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 react-native-action-sheet.