Questions tagged [antd-mobile]

23 questions
23
votes
2 answers

Ant Design antd vs antd-mobile for non-native mobile web development

Reading about Ant Design I am getting confused about which library to use for mobile web development. There are two libraries, antd and antd-mobile. While it is clear that antd-mobile supports react-native on iOS and Android, it is unclear which one…
Thijs Koerselman
  • 21,680
  • 22
  • 74
  • 108
14
votes
5 answers

Ant Design React. Bootstrap Grid "container" concept

Is there in Ant Design for React the Bootstrap Grid "container" concept? Containers are the most basic layout element in Bootstrap and are required when using our default grid system. Choose from a responsive, fixed-width container (meaning its…
user4412054
3
votes
0 answers

Clarification on "antd doesn't work well on mobile"

(Please note that i'm aware of the existence of this question, but it seems pretty outdated and apparently I don't have enough reputation to leave a comment there) I'm considering using Ant Design for a new project, but one question in the FAQ…
AkA84
  • 31
  • 3
2
votes
1 answer

How to call useNavigate inside useEffect? - For bottom navigation in Ant Design - Mobile

I am new to React. I am making an app using AntD-mobile. For Bottom navigation, I am making use of the tabBar Component in AntD-mobile. I was not sure how to use Link for routing with TabBar and after a lot of failed attempts, came upon…
2
votes
1 answer

Module not found: Can't resolve './src/refreshableScrollView

after installing ant mobile in my app i've tryed to use a card component in my app but when i launch the application in web or on my phone with expo I always receive the same error(the full log of the error is: Module not found: Can't resolve…
2
votes
1 answer

How do you create and use a custom theme using antd-mobile-rn?

I want to create and use a custom theme for the antd-mobile-rn library, the Website directs me to: https://github.com/ant-design/antd-mobile-samples/tree/master/rn-custom-ui#antd-mobile-with-rn-custom-ui I followed the instructions, but he colors…
Francois
  • 43
  • 1
  • 4
2
votes
2 answers

antd style does not work with antd-mobile style

.webpackrc.js, is it wrong? When I import {Select} from antd the Select has no style, just antd-mobile style work. entry: "src/index.js", theme: 'src/theme.js', extraBabelPlugins: [[ "import", {libraryName: "antd-mobile", "libraryDirectory":…
xiane
  • 33
  • 1
  • 5
1
vote
1 answer

Why is there no submit button in Ant Design Mobile?

i am using ant design mobile with react. and i want to submit value in InputItem or TextareaItem. but i couldn't find a 'submit button'. ;( and i could find a 'Form' in ant design. import React, { useCallback, useEffect, useReducer, useState } from…
1
vote
0 answers

Unable to resolve module `./index.css` from `node_modules\antd-mobile\lib\button \style\css.js`

When I am running this command: expo build:android I am getting following errors: Unable to resolve module `./index.css` from `node_modules\antd-mobile\lib\button\style\css.js`: None of these files exist: *…
Triyugi Narayan Mani
  • 3,039
  • 8
  • 36
  • 56
1
vote
1 answer

Using antd(React) and antd-mobile(React) in the same project

I am using NextJs, and I want to know how I can configure webpack to support both antd and antd-mobile simultaneously. Currently, not able to configure webpack correctly
1
vote
0 answers

How to integrate antd-mobile text input as controlled component with downshift?

I would like to use the autocomplete from downshift in my antd-mobile web-app. I like downshift as it renders external components. Unfortunately I could not figure out, how to 'bind' one of the one / two text input elements from antd-mobile. The…
pico_prob
  • 1,105
  • 10
  • 14
1
vote
0 answers

antd-mobile ,using babel-plugin-import,Uncaught Error: Element type is invalid

"redux": "^4.0.0", node : v10.2.1 .babelrc { "presets": ["env", "react"], "plugins": [ "babel-plugin-transform-runtime", "transform-object-rest-spread", ["import", { "libraryName": "antd-mobile", "style": "css"}] …
张英姿
  • 21
  • 3
1
vote
1 answer

Ant design mobile failed to work in react native

output of genymotion content of .babelrc and the window of genymotion content of App.js I simply import Button from antd-mobile in a project of react native and use it like this. Why does such things happen? I have already installed…
bigface00
  • 31
  • 2
1
vote
1 answer

ReactNative Antd-Mobile OnPress & Icon not working

I have two questions regarding the below code, The project is ReactNative and using antd-mobile for the UI Component. ReactNative: "dependencies": { "expo": "^26.0.0", "react": "16.3.0", "react-native":…
Herman
  • 2,832
  • 6
  • 25
  • 37
1
vote
0 answers

Single-Select and Multi-Select controls in Ant Design Mobile

I am trying to determine what are the Single-Select and Multi-Select controls in Ant Design Mobile. As far as I can tell, the Picker is the single select control. Is this correct? Is there a multi-select control? The controls don't seem to work on…
Naresh
  • 23,937
  • 33
  • 132
  • 204
1
2