Skip to content

Commit

Permalink
Fixes for RN publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
olliecurtis committed Apr 18, 2024
1 parent 84d3d75 commit 1aad174
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 20 deletions.
3 changes: 1 addition & 2 deletions lib/bpk-appearance/src/BpkAppearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ const appearance = {
addChangeListener: (listener: (BpkAppearancePreferences) => void) => {
Appearance.addChangeListener(listener);
},
// eslint-disable-next-line no-unused-vars
removeChangeListener: (listener: (BpkAppearancePreferences) => void) => {
// Appearance.addChangeListener(listener).remove();
Appearance.addChangeListener(listener).remove();
},
};

Expand Down
2 changes: 1 addition & 1 deletion lib/bpk-appearance/src/BpkAppearanceProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const BpkAppearanceProvider = ({ children, appearanceOverride }: Props) => {

BpkAppearance.addChangeListener(handler);
return () => {
BpkAppearance.removeChangeListener(handler);
// BpkAppearance.removeChangeListener(handler);
};
}, []);

Expand Down
3 changes: 1 addition & 2 deletions lib/bpk-component-button-link/src/BpkButtonLink.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { View, TouchableOpacity } from 'react-native';

import { getThemeAttributes, withTheme } from '../../bpk-theming';
import BpkIcon from '../../bpk-component-icon';
Expand Down
17 changes: 9 additions & 8 deletions lib/bpk-component-carousel-indicator/src/BpkCarouselIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,15 @@ const transitionGroupSorter = (children) =>
const BpkCarouselIndicator = (props: Props) => {
const { pageCount, selectedIndex, style, ...rest } = props;

const indicators = new Array(pageCount).fill().map((_, index) => (
<BpkCarouselIndicatorDot
// eslint-disable-next-line react/no-array-index-key
key={index.toString()}
selected={selectedIndex === index}
size={getIndicatorSize(pageCount, index, selectedIndex)}
/>
));
const indicators = new Array(pageCount)
.fill()
.map((_, index) => (
<BpkCarouselIndicatorDot
key={index.toString()}
selected={selectedIndex === index}
size={getIndicatorSize(pageCount, index, selectedIndex)}
/>
));

const { begin, end } = getIndicatorSlice(pageCount, selectedIndex);

Expand Down
2 changes: 1 addition & 1 deletion lib/bpk-component-dialog/src/NativeDialog.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
NativeEventEmitter,
processColor,
} from 'react-native';
import type EmitterSubscription from 'react-native/Libraries/vendor/emitter/EventEmitter';
import type EmitterSubscription from 'react-native/Libraries/vendor/emitter/_EmitterSubscription';
import isNil from 'lodash/isNil';
import { colors } from '@skyscanner/bpk-foundations-react-native/tokens/base.react.native';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

import React from 'react';
import PropTypes from 'prop-types';
import { I18nManager, Image, StyleSheet } from 'react-native';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { I18nManager, Image, StyleSheet, TouchableOpacity } from 'react-native';
import { textPrimaryColor } from '@skyscanner/bpk-foundations-react-native/tokens/base.react.native';

import BpkText from '../../bpk-component-text';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet } from 'react-native';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { StyleSheet, TouchableOpacity } from 'react-native';
import {
colorSkyGrayTint04,
textPrimaryColor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet } from 'react-native';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { StyleSheet, TouchableOpacity } from 'react-native';
import {
colorBlackTint05,
colorSkyGrayTint04,
Expand Down

0 comments on commit 1aad174

Please sign in to comment.