mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 13:25:51 +08:00
Add viewConfig to RCTSlider Component, fix #10158
Summary: And check componet.viewConfig before call component.setNativeProps method. FIX #10158 Closes https://github.com/facebook/react-native/pull/10238 Differential Revision: D4008640 Pulled By: javache fbshipit-source-id: 1bf9b34c0e56f1ffbcd31ae64b3cbafe77a9a1fd
This commit is contained in:
committed by
Facebook Github Bot
parent
4b7f84aee8
commit
c9960817ee
@@ -47,8 +47,6 @@ const {
|
||||
const UIExplorerPage = require('./UIExplorerPage');
|
||||
const UIExplorerBlock = require('./UIExplorerBlock');
|
||||
|
||||
const AnimatedImage = Animated.createAnimatedComponent(Image);
|
||||
|
||||
type State = {
|
||||
toggleStatus: any,
|
||||
pan: Object,
|
||||
@@ -116,7 +114,7 @@ function AnimationBlock(props) {
|
||||
return (
|
||||
<View style={styles.block}>
|
||||
<TouchableWithoutFeedback onPress={props.onPress}>
|
||||
<AnimatedImage
|
||||
<Animated.Image
|
||||
style={[styles.img, props.imgStyle]}
|
||||
source={require('./Thumbnails/poke.png')}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user