esoftplay 0.0.195 → 0.0.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/build.js +7 -2
- package/modules/lib/carrousel.tsx +9 -9
- package/package.json +1 -1
package/bin/build.js
CHANGED
|
@@ -142,8 +142,13 @@ if (fs.existsSync(packjson)) {
|
|
|
142
142
|
"./raw/plugins/noDarkAndroid",
|
|
143
143
|
"./raw/plugins/withAndroidVerifiedLinksWorkaround",
|
|
144
144
|
]
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
|
|
146
|
+
if (fs.existsSync("./node_modules/esoftplay/assets/plugins")) {
|
|
147
|
+
execSync("mkdir -p ./raw && cp -r ./node_modules/esoftplay/assets/plugins ./raw");
|
|
148
|
+
} else {
|
|
149
|
+
console.warn("Skipping copy: ./node_modules/esoftplay/assets/plugins not found");
|
|
150
|
+
}
|
|
151
|
+
// execSync("mkdir -p ./raw && cp -rf ./node_modules/esoftplay/assets/plugins ./raw/")
|
|
147
152
|
fs.writeFile(appjson, JSON.stringify($appjson, null, 2), (err) => {
|
|
148
153
|
if (err) throw err;
|
|
149
154
|
console.log('app.json has been updated');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
3
3
|
import { LibFocus } from 'esoftplay/cache/lib/focus/import';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { Platform, ScrollView, StyleSheet, Text,
|
|
5
|
+
import { Platform, ScrollView, StyleSheet, Text, View, ViewStyle } from 'react-native';
|
|
6
6
|
|
|
7
7
|
export interface LibCarrouselProps {
|
|
8
8
|
children: any,
|
|
@@ -158,9 +158,9 @@ export default class m extends LibComponent<LibCarrouselProps, LibCarrouselState
|
|
|
158
158
|
pages.push(<View><Text>You are supposed to add children inside Carousel</Text></View>);
|
|
159
159
|
}
|
|
160
160
|
return pages.map((page, i) => (
|
|
161
|
-
<
|
|
161
|
+
<View activeOpacity={1} style={[{ ...size }, pageStyle]} key={`page${i}`}>
|
|
162
162
|
{page}
|
|
163
|
-
</
|
|
163
|
+
</View>
|
|
164
164
|
));
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -341,13 +341,13 @@ export default class m extends LibComponent<LibCarrouselProps, LibCarrouselState
|
|
|
341
341
|
const bullets: any[] = [];
|
|
342
342
|
for (let i = 0; i < pageLength; i += 1) {
|
|
343
343
|
bullets.push(
|
|
344
|
-
<
|
|
344
|
+
<View activeOpacity={1} onPress={() => this.animateToPage(i)} key={`bullet${i}`}>
|
|
345
345
|
<View
|
|
346
346
|
style={i === this.state.currentPage ?
|
|
347
347
|
[styles.chosenBullet, this.props.chosenBulletStyle] :
|
|
348
348
|
[styles.bullet, this.props.bulletStyle]}
|
|
349
349
|
/>
|
|
350
|
-
</
|
|
350
|
+
</View>);
|
|
351
351
|
}
|
|
352
352
|
return (
|
|
353
353
|
<View style={[styles.bullets, this.props.bulletsContainerStyle]} pointerEvents="box-none">
|
|
@@ -364,16 +364,16 @@ export default class m extends LibComponent<LibCarrouselProps, LibCarrouselState
|
|
|
364
364
|
return (
|
|
365
365
|
<View style={styles.arrows} pointerEvents="box-none">
|
|
366
366
|
<View style={[styles.arrowsContainer, this.props.arrowsContainerStyle]} pointerEvents="box-none">
|
|
367
|
-
<
|
|
367
|
+
<View onPress={this._animatePreviousPage} style={this.props.arrowStyle} >
|
|
368
368
|
<Text style={this.props.leftArrowStyle}>
|
|
369
369
|
{this.props.leftArrowText ? this.props.leftArrowText : 'Left'}
|
|
370
370
|
</Text>
|
|
371
|
-
</
|
|
372
|
-
<
|
|
371
|
+
</View>
|
|
372
|
+
<View onPress={this._animateNextPage} style={this.props.arrowStyle} >
|
|
373
373
|
<Text style={this.props.rightArrowStyle}>
|
|
374
374
|
{this.props.rightArrowText ? this.props.rightArrowText : 'Right'}
|
|
375
375
|
</Text>
|
|
376
|
-
</
|
|
376
|
+
</View>
|
|
377
377
|
</View>
|
|
378
378
|
</View>
|
|
379
379
|
);
|