Giter Site home page Giter Site logo

Comments (9)

 avatar commented on May 7, 2024

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.

wcastand avatar wcastand commented on May 7, 2024

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.

 avatar commented on May 7, 2024

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.

wcastand avatar wcastand commented on May 7, 2024

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.

maxushuang avatar maxushuang commented on May 7, 2024

#64
Can you help with this issue? @ER1011 @wcastand

from react-native-action-sheet.

wcastand avatar wcastand commented on May 7, 2024

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.

townmulti avatar townmulti commented on May 7, 2024

+1 getting this error as well when using react 16

from react-native-action-sheet.

ggepenyan avatar ggepenyan commented on May 7, 2024

same here for me

from react-native-action-sheet.

peterpme avatar peterpme commented on May 7, 2024

👋

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.