leecade / leecade/react-native-swiper

Attempted import error: 'Swiper' is not exported from 'react-native-swiper'.

Open
#1,183 8 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐛bug help wanted
Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Which OS ?

Web expo

Version

Which versions are you using:

  • react-native-swiper v1.6
  • react-native v0.62
Expected behaviour

No import problem

Actual behaviour

Attempted import error: 'Swiper' is not exported from 'react-native-swiper'.

How to reproduce it>

create new expo project add swiper somewhere

How to fix it>

replace :
module.exports = Swiper;
module.exports.default = Swiper;
by
export default Swiper
export {Swiper}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the import error in a new Expo project using react-native-swiper v1.6, then inspect the package entry point and its export statements. Confirm that the Swiper component imports successfully on Expo Web and run the project's available checks to verify the compatibility fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.