@@ -17,9 +17,7 @@ import Package from './package.json' | |||||
import HttpUtils from './HttpUtils.js'; | import HttpUtils from './HttpUtils.js'; | ||||
import CodePush from "react-native-code-push"; | import CodePush from "react-native-code-push"; | ||||
import DeviceInfo from "react-native-device-info"; | import DeviceInfo from "react-native-device-info"; | ||||
import RNFetchBlob from 'react-native-fetch-blob'; | |||||
import * as Animatable from 'react-native-animatable'; | import * as Animatable from 'react-native-animatable'; | ||||
import {CachedImage,ImageCache} from "react-native-img-cache"; | |||||
var testMac = 'FF:FF:FF:FF:FF:FF' | var testMac = 'FF:FF:FF:FF:FF:FF' | ||||
var curAdIndex = 0; | var curAdIndex = 0; | ||||
@@ -404,7 +402,7 @@ getContentViewItem(contentItem, annomation) { | |||||
<ImageBackground source={require('./image/item-background.png')} resizeMode='center' style={styles.contentItemDownLayer} > | <ImageBackground source={require('./image/item-background.png')} resizeMode='center' style={styles.contentItemDownLayer} > | ||||
{/* 列表 */} | {/* 列表 */} | ||||
<View style={styles.contentItemTop}> | <View style={styles.contentItemTop}> | ||||
<CachedImage source={{uri: contentItem.coverImg}} resizeMode='cover' style={styles.contentItemTopCoverImg} /> | |||||
<Image source={{uri: contentItem.coverImg}} resizeMode='cover' style={styles.contentItemTopCoverImg} /> | |||||
<View style={styles.contentItemTopDetail}> | <View style={styles.contentItemTopDetail}> | ||||
{/* 券的title */} | {/* 券的title */} | ||||
<Text style={styles.contentItemTopDetailTitle} numberOfLines={2} ellipsizeMode="tail">{contentItem.target.title}</Text> | <Text style={styles.contentItemTopDetailTitle} numberOfLines={2} ellipsizeMode="tail">{contentItem.target.title}</Text> | ||||
@@ -421,7 +419,7 @@ getContentViewItem(contentItem, annomation) { | |||||
</View> | </View> | ||||
</View> | </View> | ||||
{/* <Image source={{uri:'data:image/png;base64,'+contentItem.qrcode}} resizeMode='contain' style={styles.contentItemTopQrcode} /> */} | {/* <Image source={{uri:'data:image/png;base64,'+contentItem.qrcode}} resizeMode='contain' style={styles.contentItemTopQrcode} /> */} | ||||
<CachedImage source={{uri:contentItem.target.qrCode}} resizeMode='contain' style={styles.contentItemTopQrcode} /> | |||||
<Image source={{uri:contentItem.target.qrCode}} resizeMode='contain' style={styles.contentItemTopQrcode} /> | |||||
</View> | </View> | ||||
{/* 优惠券底部商户名称 */} | {/* 优惠券底部商户名称 */} | ||||
<View style={styles.contentItemBottom}> | <View style={styles.contentItemBottom}> | ||||
@@ -181,7 +181,6 @@ android { | |||||
} | } | ||||
dependencies { | dependencies { | ||||
implementation project(':react-native-fetch-blob') | |||||
implementation project(':react-native-camera') | implementation project(':react-native-camera') | ||||
implementation project(':react-native-device-info') | implementation project(':react-native-device-info') | ||||
implementation project(':react-native-code-push') | implementation project(':react-native-code-push') | ||||
@@ -3,7 +3,6 @@ package com.screenad; | |||||
import android.app.Application; | import android.app.Application; | ||||
import com.facebook.react.ReactApplication; | import com.facebook.react.ReactApplication; | ||||
import com.RNFetchBlob.RNFetchBlobPackage; | |||||
import org.reactnative.camera.RNCameraPackage; | import org.reactnative.camera.RNCameraPackage; | ||||
import com.facebook.react.bridge.ReactApplicationContext; | import com.facebook.react.bridge.ReactApplicationContext; | ||||
@@ -38,7 +37,6 @@ public class MainApplication extends Application implements ReactApplication { | |||||
protected List<ReactPackage> getPackages() { | protected List<ReactPackage> getPackages() { | ||||
return Arrays.<ReactPackage>asList( | return Arrays.<ReactPackage>asList( | ||||
new MainReactPackage(), | new MainReactPackage(), | ||||
new RNFetchBlobPackage(), | |||||
new RNCameraPackage(), | new RNCameraPackage(), | ||||
new RNBuildConfigPackage(), | new RNBuildConfigPackage(), | ||||
new RNDeviceInfo(), | new RNDeviceInfo(), | ||||
@@ -1,6 +1,4 @@ | |||||
rootProject.name = 'screenAd' | rootProject.name = 'screenAd' | ||||
include ':react-native-fetch-blob' | |||||
project(':react-native-fetch-blob').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fetch-blob/android') | |||||
include ':react-native-camera' | include ':react-native-camera' | ||||
project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android') | project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android') | ||||
include ':react-native-device-info' | include ':react-native-device-info' | ||||
@@ -13,8 +13,6 @@ | |||||
"react-native-camera": "^1.12.0", | "react-native-camera": "^1.12.0", | ||||
"react-native-code-push": "^5.6.0", | "react-native-code-push": "^5.6.0", | ||||
"react-native-device-info": "^2.1.2", | "react-native-device-info": "^2.1.2", | ||||
"react-native-fetch-blob": "^0.10.8", | |||||
"react-native-img-cache": "^1.6.0", | |||||
"react-native-swiper": "^1.5.14", | "react-native-swiper": "^1.5.14", | ||||
"rn-fetch-blob": "^0.10.15" | "rn-fetch-blob": "^0.10.15" | ||||
}, | }, | ||||