@artsy/palette-mobile 13.2.16 → 13.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { FlatListProps } from "react-native";
3
- export declare function ScreenFlatList<T>(props: FlatListProps<T>): JSX.Element;
3
+ import Animated from "react-native-reanimated";
4
+ export type ScreenFlatListProps<T> = FlatListProps<T> & {
5
+ innerRef?: React.Ref<Animated.FlatList<T>>;
6
+ };
7
+ export declare function ScreenFlatList<T>(props: ScreenFlatListProps<T>): JSX.Element;
@@ -17,6 +17,6 @@ function ScreenFlatList(props) {
17
17
  else {
18
18
  handleScroll = scrollHandler;
19
19
  }
20
- return (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.FlatList, { ...props, onScroll: handleScroll });
20
+ return (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.FlatList, { ref: props.innerRef, ...props, onScroll: handleScroll });
21
21
  }
22
22
  exports.ScreenFlatList = ScreenFlatList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "13.2.16",
3
+ "version": "13.2.17",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "RCT_METRO_PORT=8082 react-native run-android --port 8082",