-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict in Android with other react-native-reanimated versions? #39
Comments
I have same issue. then copy this package file to my project, it works.
|
One easy workaround is to make the reanimated plugin version match with the one required by the segmented control (based on latest version, v1.1.2).
I hope it helps! |
This comment was marked as resolved.
This comment was marked as resolved.
I have the same issue. "react-native-reanimated": "2.8.0" // in dependencies |
My workaround was to download the source code, place it somewhere in my local computer and fix the version in the
|
https://github.com/whatdtech/react-native-segmented-control this is a modified version of this fork installation details are in readme file. works with latest expo and bare react native .70 version |
Hi, with @whatdtech fork I was able to install it. error: Error: Unable to resolve module deprecated-react-native-prop-types from /Users/vinzenz/Repositories/cat70refactor/node_modules/rn-segmented-control/src/segmentedControl/index.js: deprecated-react-native-prop-types could not be found within the project or in these directories:
|
try |
@whatdtech do you mind creating a PR if haven't done so already? |
No problem in creating a PR. Few more issues are there to be sorted out. |
react-native info info Fetching system and libraries information... I'm using I'm testing on iOS and macOS (using Catalyst) and get the 3 errors and 2 warning. :( I'm using the code from the example ` import * as React from 'react'; export default function App() { return ( const styles = StyleSheet.create({ |
first two warnings can be ignored due to ViewStyle props returning null maybe typescript old version dependency. Problem here is you are importing segmented control twice import SegmentedControl from 'rn-segmented-control'; import SegmentedControl from './SegmentedControl'; |
Try this example. import * as React from 'react'; TouchableHighlight, const W = Dimensions.get('window').width; export default function App() { return ( <SegmentedControl
); const styles = StyleSheet.create({ |
Ah yes, my issue wasn't related to the double import you pointed out. I wasn't using it like I said I did. segments... |
ok, Thanks for testing. I will look into it |
Hi there, I am using this great package and I am enjoying how it works, but, it forces me to use react-native-reanimated version 2.3.1 which is a dependency here. If I install another version Android will throw
Animated node with ID 2 already exists
and app wont launch. Is there a way to allow user to pick which version of reanimated plugin to use?Thanks!
The text was updated successfully, but these errors were encountered: