ant-design-mobile | Essential UI blocks for building mobile web apps | Frontend Framework library
kandi X-RAY | ant-design-mobile Summary
kandi X-RAY | ant-design-mobile Summary
English Doc | 中文文档 | Discord | 钉钉. You can also play with antd-mobile just in browser with Codesandbox. No need to prepare development environment. If you found bugs or would like to request some new features, please consider opening an issue. If you have some question about how to use ant-mobile, you can start a discussion thread.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ant-design-mobile
ant-design-mobile Key Features
ant-design-mobile Examples and Code Snippets
yarn add socket.io
module.exports = function (server) {
// 得到IO对象
const io = require('socket.io')(server)
// 监视链接(当有一个客户链接上时回调)
io.on('connection', (socket) => {
console.log('soketio connected');
// 绑定 senMsg监听,接收客户端发送的消息
sock
// 用户个人中心路由组件
import React, { Component } from 'react'
import { Result, List, WhiteSpace, Modal, Button } from 'antd-mobile'
import { connect } from "react-redux";
import Cookies from 'js-cookie';
import { resetUser } from "../../redux/actions";
con
import * as React from 'react'
import { Button } from 'antd-mobile'
import { observer } from 'okeen/react'
import user from '@/common/stores/user'
import color from '@/common/stores/color'
const App: React.FC = (props) => {
const { fetchUserInf
Community Discussions
Trending Discussions on ant-design-mobile
QUESTION
I'm trying to customize theme in Ant Design Mobile React-Native. I'm using Expo-cli.
I tried to fork https://github.com/ant-design/ant-design-mobile-rn
and customized the theme variables in https://github.com/ant-design/ant-design-mobile-rn/blob/master/components/style/themes/default.tsx,
but when i install the forked repo and use import {Button} from '@ant-design/react-native/lib/button'
, it result to error "Unable to resolve @ant-design/react-native/lib".
Then I rename the folder "components" to "lib" and remove the /lib in .gitignore file and reinstall the forked repo. It now works, but i'm not sure what i did is right. Please help me check if it is the correct way to use a forked repo.
...ANSWER
Answered 2019-Nov-02 at 10:06The steps to do what I suggested in my above comment are:
Make sure you have a Github account and you are logged in.
Go to the repo that you wish to fork and click the fork button (see image)
Once the repo has been forked to your Github account you can now make what ever changes that you want. You probably want to clone your copy of the repo to your computer to do this. Though it can be done on Github if the changes are minor.
Once the changes have been made on your repo you need to push those changes so that they are available on your repo.
Now that your changes are available on the repo, you can use them in your project. To do that you need to remove the previous installation of the repo (if it was there) and then install your forked version.
You install it using the following format npm install --save username/repo#branch-name
I have used this method multiple times when repos that I require haven't been updated and have needed significant upgrades to get them working with new versions of RN.
I also usually look to make a pull request with my changes, especially if what I have done will benefit other users.
When testing you may wish to use your local copy of your repo rather than the one stored on Github. This SO answer, shows how to do that.
Basically in your dependencies section of your package.json
add the path to your local copy of the repo with the appropriate name.
QUESTION
I need to add {"plugins": [["import", { "libraryName": "antd-mobile" }]]}
to .babelrc
from a project generated by create-react-native-app to make ant-design-mobile work in react native.
I have started a new project with create-react-native-app. Change the .babelrc to this:
...ANSWER
Answered 2017-May-17 at 12:42You can take a look at official react-native app demo: https://github.com/ant-design/antd-mobile-samples/tree/master/react-native
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ant-design-mobile
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page