Skip to content

Commit

Permalink
fix: 处理冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenlingasMx committed May 4, 2023
2 parents ad9a921 + d1745d0 commit bda1f5b
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 131 deletions.
2 changes: 1 addition & 1 deletion example/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"jest": {
"preset": "react-native"
}
}
}
5 changes: 2 additions & 3 deletions example/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"react-native-image-viewing": "~0.2.2",
"react-native-safe-area-context": "~4.3.1",
"react-native-screens": "~3.15.0",
"react-native-svg": "13.9.0",
"react-native-reanimated":"3.1.0"
"react-native-svg": "13.9.0"
},
"devDependencies": {
"@babel/core": "~7.20.7",
Expand Down Expand Up @@ -54,4 +53,4 @@
"node"
]
}
}
}
6 changes: 2 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@
"prop-types": "15.7.2",
"react-native-gesture-handler": "2.8.0",
"react-native-root-siblings": "4.1.1",
"react-native-svg": "13.9.0",
"react-native-safe-area-context":"4.5.1",
"react-native-reanimated":"3.1.0"
"react-native-svg": "13.9.0"
},
"peerDependencies": {
"react": ">=16.9.0",
Expand All @@ -81,4 +79,4 @@
"engines": {
"node": ">=16.0.0"
}
}
}
114 changes: 0 additions & 114 deletions packages/core/src/ImageHeader/AnimateHeader.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions packages/core/src/ImageHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Flex from '../Flex';
import Icon from '../Icon';
import WingBlank from '../WingBlank';
import helpers from './helpers';
// import AnimateHeader from './AnimateHeader';

const { px, isIOS } = helpers;
export type ImageHeaderProps = PropsWithChildren<{
Expand Down Expand Up @@ -97,6 +96,3 @@ const ImageHeader: FC<ImageHeaderProps> = (props) => {
);
};
export default ImageHeader;
// ImageHeader.displayName = 'ImageHeader';

// export default Object.assign(ImageHeader, { AnimateHeader });
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ function WheelPickerItem({ textStyle, style, visibleRest, height, option, index,
</Animated.View>
);
}
export default memo(WheelPickerItem, () => true);

export default memo(WheelPickerItem, (prevProps, nextProps) => {
return prevProps.option === nextProps.option;
});
const styles = StyleSheet.create({
option: {
alignItems: 'center',
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-image-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"src",
"README.md"
],
"publishConfig":{
"publishConfig": {
"access": "public"
},
"dependencies": {
Expand Down Expand Up @@ -50,4 +50,4 @@
"engines": {
"node": ">=16.0.0"
}
}
}
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@
"last 1 safari version"
]
}
}
}

0 comments on commit bda1f5b

Please sign in to comment.