Code Monkey home page Code Monkey logo

react-native-card's Issues

Unable to set icon (Android)

I'm trying to set the icon at the left of the card

I've tried a few different icons and libraries but can only get either a question mark or a square with a cross in it

Even copying the example code from the docs is giving me this result.

I've copied my package.json below in case I have missed any imports

 {
   "name": "CardTesting",
   "version": "0.0.1",
   "private": true,
   "scripts": {
     "android": "react-native run-android",
     "ios": "react-native run-ios",
     "start": "react-native start",
     "test": "jest",
     "lint": "eslint ."
   },
   "dependencies": {
     "@freakycoder/react-native-bounceable": ">= 0.2.4",
     "@paraboly/react-native-card": "^1.0.3",
     "react": "18.1.0",
     "react-entypo-icons": "^1.4.1",
     "react-native": "0.70.6",
     "react-native-androw": "^0.0.34",
     "react-native-dynamic-vector-icons": ">= 1.1.4",
     "react-native-ionicons": "^4.6.5",
     "react-native-vector-icons": ">= 7.1.0"
   },
   "devDependencies": {
     "@babel/core": "^7.12.9",
     "@babel/runtime": "^7.12.5",
     "@react-native-community/eslint-config": "^2.0.0",
     "babel-jest": "^26.6.3",
     "eslint": "^7.32.0",
     "jest": "^26.6.3",
     "metro-react-native-babel-preset": "0.72.3"
   },
   "jest": {
     "preset": "react-native"
   }
 }

When I run the app, i get two logs returned in metro

 LOG  Running "CardTesting" with {"rootTag":1}
 LOG  s

Unable to resolve module

I can see it inside node_modules.

But it returns;

Unable to resolve "react-native-androw" from "node_modules/@paraboly/react-native-card/build/dist/components/Card/Card.js"

error.

what could be the problem?

Failed building JavaScript bundle. Expo

Im using Expo, I have require dependencies:

...
"@freakycoder/react-native-bounceable": "^0.2.4",
"@paraboly/react-native-card": "github:Paraboly/react-native-card#expo",
...

But Im getting the following error:

While trying to resolve module `@paraboly/react-native-card` from file `C:\Users\App\src\screens\Home\index.js`, the package `C:\Users\App\node_modules\@paraboly\react-native-card\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\Users\App\node_modules\@paraboly\react-native-card\build\dist\index.js`. Indeed, none of these files exist:
C:\Users\App\node_modules\@paraboly\react-native-card\build\dist\index.js

Dynamic Height for Card component

I'd really appreciate dynamic height being implemented on the Card component!

It's implemented on the "SimpleCard" but not in the "Card" one.
The idea is basically adjusting the height of the card depending on the size of the content inside.

Thanks!

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.