Nothing Special   »   [go: up one dir, main page]

5.2.3 • Published 5 months ago

@ant-design/react-native v5.2.3

Weekly downloads
1,583
License
MIT
Repository
github
Last release
5 months ago

English | 简体中文

Ant Design Mobile RN

npm.io Codecov npm package NPM downloads Dependency Status Percentage of issues still open Join the chat at https://gitter.im/ant-design/ant-design

A configurable Mobile UI specification and React-based implementation.

If you only care about the style you may give [Tanjun] a try.

Features

  • Follow Ant Design Mobile UI specification.
  • Configurable UI style for different products.
  • Support web and native usages based on React Native.
  • Develop in TypeScript.

Expo

HTML5 Preview: ant-design-mobile-rn/index.html

SDK 51

Open the camera app on your device and scan the code above, need install expo app: https://expo.io/tools

Expo SDK 44SDK 47 iOSSDK 47 AndroidSDK 49,50

Install & Usage

$ npm install @ant-design/react-native @ant-design/icons-react-native

Installing peer dependencies

Next, install the required peer dependencies. You need to run different commands depending on whether your project is an Expo managed project or a bare React Native project.

  • If you have an Expo managed project, install the dependencies with expo:

    npx expo install react-native-gesture-handler react-native-reanimated
  • If you have a bare React Native project, install the dependencies with npm:

    npm install react-native-gesture-handler react-native-reanimated
  • For iOS with bare React Native project, make sure you have CocoaPods installed. Then install the pods to complete the installation:

    cd ios
    pod install
    cd ..

Link icon fonts

Add assets to your react-native.config.js ( If not exist, please create in project’s root directory )

module.exports = {
  assets: ['node_modules/@ant-design/icons-react-native/fonts'],
};

Run the react-native-asset's command and linking + unlinking is automatic

npx react-native-asset

Links

Development

  • Running On Expo

node >= 18

# go to expo example folder
cd example

# install dependencies
yarn

# start expo
yarn expo
  • Running On Device
# clone
git clone git@github.com:ant-design/ant-design-mobile-rn.git

# go to ant rn folder
cd ant-design-mobile-rn

# install dependencies
yarn

# start ios
cd rn-kitchen-sink/ios && pod install
yarn ios 

# start android
yarn android

Contributing

We welcome all contributions, please read our CONTRIBUTING.md first. You can submit any ideas as pull requests or as a GitHub issue. If you'd like to improve code, check out the Development Instruction and have a good time! :)


Thanks to all the contributors of @ant-design/react-native:

5.2.3

5 months ago

5.2.0-rc.1

7 months ago

5.2.0-rc.2

7 months ago

5.2.2

6 months ago

5.2.1

6 months ago

5.2.0

6 months ago

5.2.0-rc.0

9 months ago

5.1.3

10 months ago

5.1.2

10 months ago

5.1.1

11 months ago

5.1.0

12 months ago

5.0.5

1 year ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

3 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.7

4 years ago

4.0.6

4 years ago

4.0.5

5 years ago

4.0.4

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

4.0.0-3

5 years ago

4.0.0-2

5 years ago

4.0.0-1

5 years ago

3.3.0

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.15

5 years ago

3.1.14

5 years ago

3.1.13

6 years ago

3.1.12

6 years ago

3.1.11

6 years ago

3.1.10

6 years ago

3.1.9

6 years ago

3.1.8

6 years ago

3.1.7

6 years ago

3.1.6

6 years ago

3.1.5

6 years ago

3.1.4

6 years ago

3.1.3

6 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.6

6 years ago

3.0.5

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

3.0.0-17

6 years ago

3.0.0-16

6 years ago

3.0.0-15

6 years ago

3.0.0-14

6 years ago

3.0.0-13

6 years ago

3.0.0-12

6 years ago

3.0.0-11

6 years ago

3.0.0-10

6 years ago

3.0.0-9

6 years ago

3.0.0-8

6 years ago

3.0.0-6

6 years ago

3.0.0-5

6 years ago

3.0.0-2

6 years ago

3.0.0-1

6 years ago