mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
FIX: Crash on large screen devices due to not checking if item is not false
This commit is contained in:
parent
c312aabaf7
commit
b919966ef3
@ -327,16 +327,20 @@ const WalletsCarousel = forwardRef((props, ref) => {
|
||||
/>
|
||||
) : (
|
||||
<View style={cStyles.contentLargeScreen}>
|
||||
{props.data.map((item, index) => (
|
||||
<WalletCarouselItem
|
||||
isSelectedWallet={!props.horizontal && props.selectedWallet ? props.selectedWallet === item.getID() : undefined}
|
||||
item={item}
|
||||
index={index}
|
||||
handleLongPress={props.handleLongPress}
|
||||
onPress={props.onPress}
|
||||
key={index}
|
||||
/>
|
||||
))}
|
||||
{props.data.map((item, index) =>
|
||||
item ? (
|
||||
<WalletCarouselItem
|
||||
isSelectedWallet={!props.horizontal && props.selectedWallet ? props.selectedWallet === item.getID() : undefined}
|
||||
item={item}
|
||||
index={index}
|
||||
handleLongPress={props.handleLongPress}
|
||||
onPress={props.onPress}
|
||||
key={index}
|
||||
/>
|
||||
) : (
|
||||
<NewWalletPanel key={index} onPress={props.onPress} />
|
||||
),
|
||||
)}
|
||||
</View>
|
||||
);
|
||||
});
|
||||
|
@ -18,7 +18,7 @@ const DrawerList = props => {
|
||||
const isFocused = useIsFocused();
|
||||
const stylesHook = StyleSheet.create({
|
||||
root: {
|
||||
backgroundColor: colors.brandingColor,
|
||||
backgroundColor: colors.elevated,
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -5,17 +5,11 @@ sed -i '' '/react-native-tor/d' ./package.json
|
||||
rm -fr node_modules
|
||||
echo "Re-installing node_modules"
|
||||
npm i
|
||||
echo "Applying patch for react-native-xcode.sh"
|
||||
sed -i '' 's/--platform "$BUNDLE_PLATFORM"/--platform "ios"/g' ./node_modules/react-native/scripts/react-native-xcode.sh
|
||||
echo "Applying patch for LDK Podfile"
|
||||
sed -i '' 's/LDKFramework.xcframework/LDKFramework-maccatalyst.xcframework/g' ./node_modules/rn-ldk/rn-ldk.podspec
|
||||
echo "Applying patch for RCTCameraManager.m"
|
||||
patch node_modules/react-native-camera/ios/RCT/RCTCameraManager.m scripts/maccatalystpatches/RCTCameraManagerDiff
|
||||
echo "Applying patch for RNCamera.m"
|
||||
patch node_modules/react-native-camera/ios/RN/RNCamera.m scripts/maccatalystpatches/RNCamera.patch
|
||||
echo "Deleting torrific.js content"
|
||||
echo > blue_modules/torrific.js
|
||||
echo "Updating Podfile"
|
||||
cd ios && pod update && cd ..
|
||||
echo ""
|
||||
echo "NOTE: react-native-tor is not currently compatible with Mac Catalyst.
|
||||
echo "NOTE: react-native-tor and rn-dlk are not currently compatible with Mac Catalyst.
|
Loading…
Reference in New Issue
Block a user