Skip to content

Commit 20c6bf2

Browse files
committed
fix: set close image size
1 parent 68c540e commit 20c6bf2

File tree

3 files changed

+20559
-12744
lines changed

3 files changed

+20559
-12744
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"@release-it/conventional-changelog": "^5.0.0",
5757
"@types/jest": "^28.1.2",
5858
"@types/react": "^19.1.0",
59-
"@types/react-native": "0.70.0",
59+
"@types/react-native": "0.73.0",
6060
"commitlint": "^17.0.2",
6161
"del-cli": "^5.0.0",
6262
"eslint": "^8.4.1",
@@ -65,7 +65,7 @@
6565
"jest": "^28.1.1",
6666
"prettier": "^2.0.5",
6767
"react": "^19.1.0",
68-
"react-native": "0.72.6",
68+
"react-native": "0.81.1",
6969
"react-native-builder-bob": "^0.23.1",
7070
"react-native-webview": "^13.6.2",
7171
"release-it": "^15.0.0",
@@ -76,7 +76,7 @@
7676
},
7777
"peerDependencies": {
7878
"react": ">=18.0.0",
79-
"react-native": "*",
79+
"react-native": ">=0.72.0",
8080
"react-native-webview": "*"
8181
},
8282
"workspaces": [

src/components/Prompt/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,10 @@ const CloseButton = ({
266266
style={[closeButtonStyles.closeButton, { backgroundColor }]}
267267
onPress={onPress}
268268
>
269-
<Image source={require('./images/close.png')} />
269+
<Image
270+
source={require('./images/close.png')}
271+
style={closeButtonStyles.closeIcon}
272+
/>
270273
</TouchableHighlight>
271274
);
272275
};
@@ -279,6 +282,10 @@ const closeButtonStyles = StyleSheet.create({
279282
top: 8,
280283
right: 8,
281284
},
285+
closeIcon: {
286+
width: 12,
287+
height: 12,
288+
},
282289
});
283290

284291
const mapStateToProps = ({ safeAreaInsets, survey }: State) => ({

0 commit comments

Comments
 (0)