Skip to content

Commit

Permalink
init: rename antd-mobile to antd-mobile-rn
Browse files Browse the repository at this point in the history
  • Loading branch information
warmhug committed Jun 5, 2018
1 parent 3f9ce31 commit fbaec7d
Show file tree
Hide file tree
Showing 62 changed files with 84 additions and 87 deletions.
6 changes: 3 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[
"import",
{
"libraryName": "antd-mobile",
"libraryName": "antd-mobile-rn",
"libraryDirectory": "components"
}
]
Expand All @@ -22,7 +22,7 @@
[
"import",
{
"libraryName": "antd-mobile",
"libraryName": "antd-mobile-rn",
"libraryDirectory": "components"
}
]
Expand All @@ -36,7 +36,7 @@
[
"import",
{
"libraryName": "antd-mobile",
"libraryName": "antd-mobile-rn",
"libraryDirectory": "components"
}
]
Expand Down
2 changes: 1 addition & 1 deletion components/accordion/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:no-console */
import { Accordion, List } from 'antd-mobile';
import { Accordion, List } from 'antd-mobile-rn';
import React from 'react';
import { View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/action-sheet/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { View, Text, Platform } from 'react-native';
import { ActionSheet, Button } from 'antd-mobile';
import { ActionSheet, Button } from 'antd-mobile-rn';

export default class Test extends React.Component<any, any> {
constructor(props: any) {
Expand Down
2 changes: 1 addition & 1 deletion components/activity-indicator/demo/basic.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Flex,
WhiteSpace,
WingBlank,
} from 'antd-mobile';
} from 'antd-mobile-rn';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/badge/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tslint:disable:jsx-no-multiline-js
/* tslint:disable:no-console */
import { Badge, WhiteSpace } from 'antd-mobile';
import { Badge, WhiteSpace } from 'antd-mobile-rn';
import React from 'react';
import { ScrollView, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/button/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* tslint:disable:no-unused-variable */
// tslint:disable:jsx-no-multiline-js
import { Button, WhiteSpace, WingBlank } from 'antd-mobile';
import { Button, WhiteSpace, WingBlank } from 'antd-mobile-rn';
import React from 'react';

/* tslint:disable:no-console */
Expand Down
2 changes: 1 addition & 1 deletion components/card/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Card, WhiteSpace, WingBlank } from 'antd-mobile';
import { Card, WhiteSpace, WingBlank } from 'antd-mobile-rn';
import React from 'react';
import { Text, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/carousel/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Carousel } from 'antd-mobile';
import { Carousel } from 'antd-mobile-rn';
import React from 'react';
import { StyleSheet, Text, TextStyle, View, ViewStyle } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/checkbox/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// tslint:disable:jsx-no-multiline-js
import { Checkbox, List, WhiteSpace } from 'antd-mobile';
import { Checkbox, List, WhiteSpace } from 'antd-mobile-rn';
import React from 'react';
import { Text, View } from 'react-native';
const AgreeItem = Checkbox.AgreeItem;
Expand Down
2 changes: 1 addition & 1 deletion components/date-picker-view/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:no-console */
import { DatePickerView } from 'antd-mobile';
import { DatePickerView } from 'antd-mobile-rn';
import React from 'react';
import { Text, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/date-picker/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tslint:disable:jsx-no-multiline-js
/* tslint:disable:no-console */
import { DatePicker, List } from 'antd-mobile';
import { DatePicker, List } from 'antd-mobile-rn';
import React from 'react';
import { View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/drawer/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// tslint:disable:jsx-no-multiline-js
import { Button, Drawer, List, WhiteSpace } from 'antd-mobile';
import { Button, Drawer, List, WhiteSpace } from 'antd-mobile-rn';
import React from 'react';
import { ScrollView, StyleSheet, Text, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/flex/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// tslint:disable:jsx-no-multiline-js
import { Button, Flex, WhiteSpace, WingBlank } from 'antd-mobile';
import { Button, Flex, WhiteSpace, WingBlank } from 'antd-mobile-rn';
import React from 'react';
import { ScrollView, Text, TouchableWithoutFeedback, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/grid/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Grid } from 'antd-mobile';
import { Grid } from 'antd-mobile-rn';
import React from 'react';
import { ScrollView, Text, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/icon/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Grid, Icon } from 'antd-mobile';
import { Grid, Icon } from 'antd-mobile-rn';
import React from 'react';

const list = [
Expand Down
2 changes: 1 addition & 1 deletion components/image-picker/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ImagePicker, WhiteSpace } from 'antd-mobile';
import { ImagePicker, WhiteSpace } from 'antd-mobile-rn';
import React from 'react';
import { View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/input-item/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:jsx-no-multiline-js */
import { Button, InputItem, List } from 'antd-mobile';
import { Button, InputItem, List } from 'antd-mobile-rn';
import React from 'react';
import { ScrollView, Text } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/list/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* tslint:disable:jsx-no-multiline-js */
// tslint:disable:no-empty
import { List } from 'antd-mobile';
import { List } from 'antd-mobile-rn';
import React from 'react';
import { Image, ScrollView, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/locale-provider/demo/basic.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { View } from 'react-native';
import {
Pagination, LocaleProvider, List, DatePicker, WhiteSpace, WingBlank,
Picker, SearchBar,
} from 'antd-mobile';
} from 'antd-mobile-rn';
import enUS from '../en_US';
import ruRU from '../ru_RU';

Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:no-console */
import { Button, Modal, WhiteSpace, WingBlank } from 'antd-mobile';
import { Button, Modal, WhiteSpace, WingBlank } from 'antd-mobile-rn';
import React from 'react';
import { Text, View, ScrollView } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/notice-bar/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tslint:disable:jsx-no-multiline-js
/* tslint:disable:no-console */
import { NoticeBar, WhiteSpace } from 'antd-mobile';
import { NoticeBar, WhiteSpace } from 'antd-mobile-rn';
import React from 'react';
import { Image, Text, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/pagination/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Pagination, WhiteSpace, WingBlank } from 'antd-mobile';
import { Pagination, WhiteSpace, WingBlank } from 'antd-mobile-rn';
import React from 'react';

const locale = {
Expand Down
2 changes: 1 addition & 1 deletion components/picker-view/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PickerView } from 'antd-mobile';
import { PickerView } from 'antd-mobile-rn';
import React from 'react';

const seasons = [
Expand Down
2 changes: 1 addition & 1 deletion components/picker/demo/popup.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { List, Picker } from 'antd-mobile';
import { List, Picker } from 'antd-mobile-rn';
import React from 'react';
import { View, Text, TouchableOpacity } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/popover/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Popover } from 'antd-mobile';
import { Popover } from 'antd-mobile-rn';
import React from 'react';
import { Platform, StyleSheet, Text, View, ViewStyle } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/progress/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Progress, WhiteSpace } from 'antd-mobile';
import { Button, Progress, WhiteSpace } from 'antd-mobile-rn';
import React from 'react';
import { Text, View, ViewStyle } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/radio/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:jsx-no-multiline-js */
import { List, Radio, WhiteSpace } from 'antd-mobile';
import { List, Radio, WhiteSpace } from 'antd-mobile-rn';
import React from 'react';
import { Text, View } from 'react-native';
const RadioItem = Radio.RadioItem;
Expand Down
2 changes: 1 addition & 1 deletion components/result/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// tslint:disable:jsx-no-multiline-js
import { Result } from 'antd-mobile';
import { Result } from 'antd-mobile-rn';
import React from 'react';
import { Image, ScrollView, Text } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/search-bar/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SearchBar } from 'antd-mobile';
import { SearchBar } from 'antd-mobile-rn';
import React from 'react';
import { Alert, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/segmented-control/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:no-console */
import { SegmentedControl, WhiteSpace } from 'antd-mobile';
import { SegmentedControl, WhiteSpace } from 'antd-mobile-rn';
import React from 'react';
import { Text, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/slider/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Slider } from 'antd-mobile';
import { Slider } from 'antd-mobile-rn';
import React from 'react';
import { Text, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/stepper/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tslint:disable:jsx-no-multiline-js
/* tslint:disable:no-console */
import { List, Stepper } from 'antd-mobile';
import { List, Stepper } from 'antd-mobile-rn';
import React from 'react';
import { View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/steps/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:jsx-no-multiline-js */
import { Icon, WingBlank } from 'antd-mobile';
import { Icon, WingBlank } from 'antd-mobile-rn';
import Steps from '../index.native';
const Step = Steps.Step;
import React from 'react';
Expand Down
4 changes: 2 additions & 2 deletions components/style/themes/default.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const brandPrimaryTap = '#1284d6';

if (typeof console !== 'undefined' && console.warn) {
// tslint:disable-next-line:no-console
console.warn('Note: In antd-mobile@2.2.0, React Native components will be' +
' transferred to the separate `antd-mobile-rn` package.');
console.warn('Note: In antd-mobile-rn@2.2.0, React Native components will be' +
' transferred to the separate `antd-mobile-rn-rn` package.');
}

export default {
Expand Down
2 changes: 1 addition & 1 deletion components/swipe-action/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:no-console */
import { List, SwipeAction } from 'antd-mobile';
import { List, SwipeAction } from 'antd-mobile-rn';
import React from 'react';
import { View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/switch/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// tslint:disable:jsx-no-multiline-js
import { List, Switch } from 'antd-mobile';
import { List, Switch } from 'antd-mobile-rn';
import React from 'react';

export default class SwitchExample extends React.Component<any, any> {
Expand Down
2 changes: 1 addition & 1 deletion components/tab-bar/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { View, Text } from 'react-native';
import { TabBar, SearchBar } from 'antd-mobile';
import { TabBar, SearchBar } from 'antd-mobile-rn';

export default class BasicTabBarExample extends React.Component<any, any> {
constructor(props: any) {
Expand Down
2 changes: 1 addition & 1 deletion components/tabs/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:no-console */
import { Tabs } from 'antd-mobile';
import { Tabs } from 'antd-mobile-rn';
import React from 'react';
import { ScrollView, Text, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/tag/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tslint:disable:jsx-no-multiline-js
/* tslint:disable:no-console */
import { Tag, WhiteSpace } from 'antd-mobile';
import { Tag, WhiteSpace } from 'antd-mobile-rn';
import React from 'react';
import { View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/textarea-item/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:no-console */
import { List, TextareaItem } from 'antd-mobile';
import { List, TextareaItem } from 'antd-mobile-rn';
import React from 'react';
import { ScrollView } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/toast/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable:no-console */
import { Button, Toast, WhiteSpace, WingBlank } from 'antd-mobile';
import { Button, Toast, WhiteSpace, WingBlank } from 'antd-mobile-rn';
import React from 'react';
import { DeviceEventEmitter } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/white-space/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// tslint:disable:jsx-no-multiline-js
import { WhiteSpace } from 'antd-mobile';
import { WhiteSpace } from 'antd-mobile-rn';
import React from 'react';
import { Text, View } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion components/wing-blank/demo/basic.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tslint:disable:jsx-no-multiline-js

import { WhiteSpace, WingBlank } from 'antd-mobile';
import { WhiteSpace, WingBlank } from 'antd-mobile-rn';
import React from 'react';
import { Text, View } from 'react-native';

Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@
"npm run lint-staged:es"
]
},
"config": {
"port": 8003
},
"typings": "lib/index.native.d.ts",
"pre-commit": [
"lint-staged"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">antd-mobile</string>
<string name="app_name">antd-mobile-rn</string>
</resources>
2 changes: 1 addition & 1 deletion rn-kitchen-sink/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rootProject.name = 'antd-mobile'
rootProject.name = 'antd-mobile-rn'

include ':app', ':react-native-code-push'
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../../node_modules/react-native-code-push/android/app')
4 changes: 2 additions & 2 deletions rn-kitchen-sink/app/manifest.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>https://mobile.ant.design/rn-kitchen-sink/antd-mobile.ipa</string>
<string>https://mobile.ant.design/rn-kitchen-sink/antd-mobile-rn.ipa</string>
</dict>
<dict>
<key>kind</key>
Expand All @@ -35,7 +35,7 @@
<key>kind</key>
<string>software</string>
<key>title</key>
<string>antd-mobile</string>
<string>antd-mobile-rn</string>
</dict>
</dict>
</array>
Expand Down
2 changes: 1 addition & 1 deletion rn-kitchen-sink/app/qrcode.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
var isAndroid = !!navigator.userAgent.match(/Android/i);
window.location.href =
isAndroid ?
'https://mobile.ant.design/rn-kitchen-sink/antd-mobile.apk'
'https://mobile.ant.design/rn-kitchen-sink/antd-mobile-rn.apk'
:
'itms-services://?action=download-manifest&url=https://mobile.ant.design/rn-kitchen-sink/manifest.plist';
}
Expand Down
2 changes: 1 addition & 1 deletion rn-kitchen-sink/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
ActivityIndicator,
StatusBar,
} from 'react-native';
import { List } from 'antd-mobile';
import { List } from 'antd-mobile-rn';
import codePush from 'react-native-code-push';
import AppInfo from './appInfo.js';

Expand Down
2 changes: 1 addition & 1 deletion rn-kitchen-sink/components/RnIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
View,
ScrollView,
} from 'react-native';
import { List, SearchBar } from 'antd-mobile';
import { List, SearchBar } from 'antd-mobile-rn';
import { UIVIEWS, UICONTROLS, OTHERS, UIBARS } from '../demoList';

const styles = StyleSheet.create({
Expand Down
Loading

0 comments on commit fbaec7d

Please sign in to comment.