I know the regular scrollview on Android doesn't bounce, but I want this functionality. I am trying to use the package SpringScrollView, but when I replace my <ScrollView>
components with <SpringScrollView>
I receive the error
Requiring unknown module "94". If you are sure the module exists, try restarting Metro. You may also want to run 'yarn' or 'npm install'.
I don't really what Metro is, but if I just shut down the app, and rerun it using yarn install
I get the same error
Update
I run into problems with the installation instructions in the documentation when I arrive at the part for MainApplication.java. The documentation specifies to modify my getPackages() function to be
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new SpringScrollViewPackage()
);
}
My getPackages function for my MainApplication.java looked a little bit different
@Override
protected List<ReactPackage> getPackages() {
List<ReactPackage> packages = new PackageList(this).getPackages();
packages.add(
new ModuleRegistryAdapter(mModuleRegistryProvider)
);
return packages;
}
So I tried to modify it to be
@Override
protected List<ReactPackage> getPackages() {
List<ReactPackage> packages = new PackageList(this).getPackages();
packages.add(
new ModuleRegistryAdapter(mModuleRegistryProvider)
);
packages.add(new SpringScrollViewPackage());
return packages;
}
But when I do this, I receive this error when I build
error: cannot find symbol
packages.add(new SpringScrollViewPackage());
^
symbol: class SpringScrollViewPackage
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
I tried installing a version that was 0.* also, because it looks like the fancy instructions are only for the 2.* versions, but when I do that and use a SpringScrollView I get an error like
"You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports"