Comments (8)
Hi, i am not sure on whats going on there, but can you post your app/build.gradle file?
from react-native-collapsing-toolbar.
`apply plugin: "com.android.application"
import com.android.build.OutputFile
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
/**
- Set this to true to create two separate APKs instead of one:
-
- An APK that only works on ARM devices
-
- An APK that only works on x86 devices
- The advantage is the size of the APK is reduced by about 4MB.
- Upload all the APKs to the Play Store and people will download
- the correct one based on the CPU architecture of their device.
*/
def enableSeparateBuildPerCPUArchitecture = false
/**
- Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.awesomeproject"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
dependencies {
compile project(':react-native-vector-icons')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
compile project(':react-native-collapsing-toolbar')
compile project(':react-native-nested-scroll-view')
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
`
from react-native-collapsing-toolbar.
Can you set the compileSdkVersion
and targetSdkVersion
to 25, as following the build.gradle on the example project?
from react-native-collapsing-toolbar.
I understand what I will do, I can establish this manually or it is necessary
start another project, excuse me, I'm new to react native.
from react-native-collapsing-toolbar.
It did not work, the same problem. Here my file gradle
https://github.com/Th3Ov3r/DeliveyApp/blob/master/AwesomeProject/android/app/build.gradle
from react-native-collapsing-toolbar.
Ok, now i see, it won't work with react-native 0.47.0, you should use react-native 0.51 or higher.
from react-native-collapsing-toolbar.
Ok, i am undestand, I'll try with that
from react-native-collapsing-toolbar.
how to make it work on react native 0.48.4 ?
from react-native-collapsing-toolbar.
Related Issues (20)
- ios build issue HOT 2
- Mention in readme that compileSdkVersion should be 25 HOT 2
- How to change overflow icon color? HOT 5
- Alt use of AppBarLayout - Possible to mimic play sotre behavior on "scroll up"/"scroll to top" HOT 7
- bug when the phone is turned off in the app with the component HOT 10
- Can't work with NavBarIcon HOT 4
- The SDK Build Tools revision (23.0.1) is too low for project ':react-native-nested-scroll-view'. Minimum required is 25.0.0 HOT 2
- StatusBar translucent with under the image and other things ... HOT 11
- undefined is not an object HOT 3
- I have this issue HOT 3
- D8: Program type already present: android.support.design.widget.CoordinatorLayout$Behavior HOT 5
- You have to rotate the screen to work properly. HOT 4
- Support library versions are hardcoded
- Feedback based on my own CoordinatorLayout implementation HOT 2
- Help! Could you tell me what's the problem in my codes? HOT 1
- RN Collapsing Toolbar Title Does Not Show
- Problem: Strange behavior of the toolbar HOT 3
- Works on iOS? HOT 1
- RNCollapsingToolbarPackage is not abstract and does not override abstract method createJSModules() in ReactPackage HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-collapsing-toolbar.