Skip to content

Commit

Permalink
Merge pull request #54 from SimformSolutionsPvtLtd/develop
Browse files Browse the repository at this point in the history
Release v1.0.0
  • Loading branch information
mukesh-simform committed Jun 12, 2024
2 parents fe6c050 + 8286d9f commit 40ee9d5
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 58 deletions.
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
'react-native-reanimated/plugin',
],
};
5 changes: 5 additions & 0 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,10 @@ target 'reactions_example' do
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
end
end
end
end
7 changes: 4 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"lodash": "^4.17.21",
"react": "18.0.0",
"react-native": "0.69.5",
"react-native-gesture-handler": "^2.6.0",
"react-native-reanimated": "^2.10.0"
"react-native-gesture-handler": "2.16.2",
"react-native-reanimated": "3.8.1"
},
"devDependencies": {
"@babel/core": "^7.12.9",
Expand All @@ -36,7 +36,8 @@
"typescript": "^4.6.4"
},
"resolutions": {
"@types/react": "*"
"@types/react": "*",
"react-native-reanimated": "3.8.1"
},
"jest": {
"preset": "react-native",
Expand Down
4 changes: 2 additions & 2 deletions example/src/component/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const Footer = ({
itemIndex={index}
onTap={setSelectedEmoji}
onShowDismissCard={onShowDismissCard}>
<Text>{selectedEmoji ? selectedEmoji?.emoji : Strings?.like}</Text>
<Text style={styles.text}>{selectedEmoji ? selectedEmoji?.emoji : Strings?.like}</Text>
</Reaction>
<Text>{Strings?.share}</Text>
<Text style={styles.text}>{Strings?.share}</Text>
</View>
);

Expand Down
3 changes: 3 additions & 0 deletions example/src/component/Card/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ export const styles = StyleSheet.create({
width: scale(18),
height: verticalScale(18),
resizeMode: "contain"
},
text: {
color: Colors.black
}
})
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-reactions",
"version": "0.0.4",
"version": "1.0.0",
"description": "A React Native component to provide animated reaction picker",
"main": "lib/index",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -54,8 +54,8 @@
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-gesture-handler": "^2.6.0",
"react-native-reanimated": "^2.10.0"
"react-native-gesture-handler": "2.16.2",
"react-native-reanimated": "3.8.1"
},
"devDependencies": {
"@commitlint/cli": "^16.1.0",
Expand All @@ -65,8 +65,8 @@
"@types/jest": "^27.4.0",
"babel-jest": "^27.4.6",
"eslint-plugin-simple-import-sort": "^7.0.0",
"react-native-gesture-handler": "^2.6.0",
"react-native-reanimated": "^2.10.0",
"react-native-gesture-handler": "2.16.2",
"react-native-reanimated": "3.8.1",
"husky": "^7.0.4",
"jest": "^27.4.7",
"lint-staged": "^11.1.2",
Expand All @@ -86,7 +86,8 @@
"react-test-renderer": "18.0.0"
},
"resolutions": {
"@types/react": "*"
"@types/react": "*",
"react-native-reanimated": "3.8.1"
},
"jest": {
"preset": "react-native",
Expand Down Expand Up @@ -123,4 +124,4 @@
"@commitlint/config-conventional"
]
}
}
}
2 changes: 1 addition & 1 deletion src/components/EmojiItem/hooks/useEmojiItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const useEmojiItem = (props: EmojiItemProps) => {
setTitlePosition(e.nativeEvent.layout.x - 4);
};

const reverseEnim = (scaleEmoji as any).value === 2 ? [2, 1, 0] : [0, 1, 2];
const reverseEnim = (scaleEmoji as any).value === 2 ? [2, 1, 1] : [1, 1, 2];

useEffect(() => {
scaleEmoji.value = withTiming(scaled ? 2 : 1, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,61 +13,51 @@ exports[`ReactionView component Match Snapshot 1`] = `
}
>
<View
accessibilityState={
Object {
"disabled": false,
}
}
accessible={true}
collapsable={false}
focusable={true}
onClick={[Function]}
onLayout={[Function]}
onMoveShouldSetResponder={[Function]}
onMoveShouldSetResponderCapture={[Function]}
onResponderEnd={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderReject={[Function]}
onResponderRelease={[Function]}
onResponderStart={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"opacity": 1,
}
}
onStartShouldSetResponderCapture={[Function]}
onTouchEnd={[Function]}
onTouchStart={[Function]}
>
<View
onTouchEnd={[Function]}
onTouchStart={[Function]}
>
<Text
disabled={false}
onLongPress={[Function]}
onMoveShouldSetResponder={[Function]}
onMoveShouldSetResponderCapture={[Function]}
onPress={[Function]}
onResponderEnd={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderReject={[Function]}
onResponderRelease={[Function]}
onResponderStart={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
onStartShouldSetResponderCapture={[Function]}
style={
Object {
"alignItems": "center",
"justifyContent": "center",
}
accessibilityState={
Object {
"disabled": false,
}
>
<Text
onLongPress={[Function]}
onPress={[Function]}
>
Emoji Text
</Text>
}
accessible={true}
collapsable={false}
focusable={true}
hitSlop={
Object {
"bottom": 20,
"left": 20,
"right": 20,
"top": 20,
}
}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
>
<Text>
Emoji Text
</Text>
</View>
</View>
Expand Down

0 comments on commit 40ee9d5

Please sign in to comment.