Closed IlanZ93 closed 2 years ago
Hey,
My project is using TypeScript so I have this issue and can't be solve, can you maybe publish new declaration or if you are aware of a new way to hide the Home indicator on React Native 0.64...
Thank you
just add to in root of you project
// index.d.ts
declare module 'react-native-home-indicator' {
import React from 'react';
type HomeIndicatorProps = {
autoHidden?: boolean;
};
// eslint-disable-next-line import/no-default-export
export default class HomeIndicator extends React.Component<HomeIndicatorProps> {
popAndGetPreviousProps(): void;
}
}
I opened a PR which addresses the missing types. Basically I converted the module to TS and also refactored the react class to hooks. This needs some testing but it will presumably go live within the next days. @kikeztw @IlanZ93
Hey,
My project is using TypeScript so I have this issue and can't be solve, can you maybe publish new declaration or if you are aware of a new way to hide the Home indicator on React Native 0.64...
Thank you