[Android] Unsupported interpolation type : keyboard
See original GitHub issueAs reported in https://github.com/facebook/react-native/issues/23343 and incorrectly closed, LayoutAnimation.configureNext()
on Android throw’s error when using LayoutAnimation.Types.keyboard
as type.
React Native version:
System:
OS: macOS 10.15.2
CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
Memory: 12.61 GB / 32.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.3 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.13.6 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 23, 24, 26, 27, 28
Build Tools: 27.0.3, 28.0.3, 29.0.2
System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
Android NDK: 19.2.5345600
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.6010548
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
Steps To Reproduce
- On Android run the following code
const animation = LayoutAnimation.create(250, LayoutAnimation.Types.keyboard, 'opacity');
LayoutAnimation.configureNext(animation);
this.setState(...);
Describe what you expected to happen: App not to throw error
Snack, code example, screenshot, or link to a repository:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
missing interpolation type in react native android
This is how i define my custom animation type. const CustomLayoutLinear = { duration: 300, create: { type: LayoutAnimation.Types.linear, ...
Read more >Property Animation Overview | Android Developers
Time interpolation: You can specify how the values for the property are calculated as a function of the animation's current elapsed time.
Read more >CameraCharacteristics - Android Developers
aberrationMode that are supported by this camera device. ... device will resample the curve to its internal representation, using linear interpolation.
Read more >Vector drawables overview | Android Developers
A VectorDrawable is a vector graphic defined in an XML file as a set of points, lines, and curves along with its associated...
Read more >R.attr - Android Developers
Specify the type of auto-size. Note that this feature is not supported by EditText, works only for TextView. Must be one of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same pronlem,
UIManager.setLayoutAnimationEnabledExperimental(true);
is enabled in the code, the problem is inLayoutAnimation.configureNext({ duration, update: { duration, type:"keyboard" } })
, what is the reason for this error?Yes