Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pr #568 #615

Merged
merged 1 commit into from
Sep 27, 2019
Merged

pr #568 #615

merged 1 commit into from
Sep 27, 2019

Conversation

xinbowang
Copy link
Contributor

  1. package.json:
  • yarn add @react-native-community/viewpager
  • react-native link @react-native-community/viewpager
  dependencies:{
    @react-native-community/viewpager: "@react-native-community/viewpager": "^1.1.7",
  }
  1. components/tabs.tsx
    修改
import { Animated, Dimensions, LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent, Platform, ScrollView,ViewPagerAndroid  } from 'react-native';

修改为

import { Animated, Dimensions, LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent, Platform, ScrollView } from 'react-native';
import ViewPagerAndroid from '@react-native-community/viewpager';

@BANG88
Copy link
Member

BANG88 commented Aug 21, 2019

这个改动不大但是影响比较大,等react-native 正式弃用view pager 的时候再合并这个吧。
要link 在expo之前的版本就用不了。

@xinbowang
Copy link
Contributor Author

xinbowang commented Aug 21, 2019 via email

@BANG88
Copy link
Member

BANG88 commented Aug 21, 2019

可以的。现在也不影响应用,只是老警告,比较烦人。

react-native 没有不⚠️的。 习惯了

@xinbowang
Copy link
Contributor Author

xinbowang commented Aug 22, 2019 via email

@BANG88
Copy link
Member

BANG88 commented Aug 22, 2019

mobile 是for web的。 rn才是react native的

@fallenner
Copy link

0.61.1 版本已经移除了。 还有0.61.1 Android版本Toast组件变白

@BANG88 BANG88 merged commit 73bc942 into ant-design:master Sep 27, 2019
@BANG88
Copy link
Member

BANG88 commented Sep 27, 2019

0.61.1 版本已经移除了。 还有0.61.1 Android版本Toast组件变白

Toast 组件变白可以来个issue吗?

BANG88 added a commit that referenced this pull request Sep 27, 2019
* 'master' of github.com:ant-design/ant-design-mobile-rn:
  pr #568 (#615)
  English typo (#637)
@fallenner
Copy link

0.61.1 版本已经移除了。 还有0.61.1 Android版本Toast组件变白

Toast 组件变白可以来个issue吗?

已经提了 650

GrigoryPtashko added a commit to GrigoryPtashko/ant-design-mobile-rn that referenced this pull request Oct 3, 2019
* upstream/master:
  bump
  test: update snap
  fix: locale
  pr ant-design#568 (ant-design#615)
  English typo (ant-design#637)
  English typo (ant-design#632)
  test: fixes tabs
  fix: miss TouchableOpacity
  chore: tabs  add RenderTabBar demo close ant-design#630
  chore: add demo fixes ant-design#545
  bump
  Add longPress support to ListItem and amend ListItemProps (ant-design#619)
  fix: test of search-bar
  bump
  fix: type definition of search-bar
  给Modal加上了返回键的监听 (ant-design#611)
  chore: doc
  fix: update react-native autolinking fixes ant-design#598
  bump
  DatePicker组件增加一个defaultDate属性,指定默认的选中时间 (ant-design#593)
  bump
  Grid新的一行不满columnNum时,如果自定义了itemStyle,用来填充columnNum的item样式会和正常的item不一样的问题 (ant-design#583)
@campcc
Copy link

campcc commented May 18, 2020

官方 Demo Tabs 组件引入直接报红屏了,原因就是引入@react-native-community/viewpager,pr都不用跑一下的吗?

@zxkNoir
Copy link

zxkNoir commented Apr 2, 2021

官方 Demo Tabs 组件引入直接报红屏了,原因就是引入@react-native-community/viewpager,pr都不用跑一下的吗?

请问一下大佬,这种情况可以直接替换成react-native-pager-view吗,初学antd的demo就一直报这个viewpager的错

@1uokun
Copy link
Collaborator

1uokun commented Apr 8, 2021

官方 Demo Tabs 组件引入直接报红屏了,原因就是引入@react-native-community/viewpager,pr都不用跑一下的吗?

请问一下大佬,这种情况可以直接替换成react-native-pager-view吗,初学antd的demo就一直报这个viewpager的错

先用@react-native-picker/picker(#1120) 依赖,等社区稳定了我们会出一个正式包

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants