Skip to content

Major version 6.0.0 #1535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
077c6f8
Major version bump
Inbal-Tish Sep 12, 2021
91a24af
Rename components props interface (#1534)
Inbal-Tish Sep 12, 2021
2b597a4
SelectableComponent - Removing deprecated component (#1536)
Inbal-Tish Sep 12, 2021
8c9a59b
TagsInput - removing component (#1538)
Inbal-Tish Sep 12, 2021
b481d5e
AnimatableManager - removing component (#1537)
Inbal-Tish Sep 12, 2021
2937453
ThemeManager - removing 'setTheme' (#1539)
Inbal-Tish Sep 12, 2021
bd5479f
CardImage - remove deprecated props (#1541)
Inbal-Tish Sep 12, 2021
bccb5d9
KeyboardTrackingView (iOS)- changed 'useSafeArea' default to 'false' …
Inbal-Tish Sep 12, 2021
d72e9c9
PanningProviderDirection - removing type (use PanningDirections) (#1542)
Inbal-Tish Sep 12, 2021
08bed58
Avatar and Badge - props deprecation (#1540)
Inbal-Tish Sep 12, 2021
889f053
types
Inbal-Tish Sep 12, 2021
4a3300c
react-native-animatable - removing dep (#1544)
Inbal-Tish Sep 12, 2021
63ed5ab
Colors new presets (#1546)
Inbal-Tish Sep 12, 2021
48dc82b
TabBar - start deprecation and remove usages (#1545)
Inbal-Tish Sep 12, 2021
2157de6
TabBarItem - remove deprecated prop (#1554)
Inbal-Tish Sep 13, 2021
75b2599
StateScreen - remove deprecated props: 'source' (use 'imageSource'), …
Inbal-Tish Sep 13, 2021
6915130
Dialog remove deprecated prop (#1550)
Inbal-Tish Sep 13, 2021
57484f6
CardSection - remove 'source' (use 'imageSource') (#1551)
Inbal-Tish Sep 13, 2021
c15ae69
Stepper new design (#1547)
Inbal-Tish Sep 13, 2021
757d64d
Progress bar new design (#1549)
Inbal-Tish Sep 13, 2021
1543e6e
Remove old implementations of TabController (#1555)
ethanshar Sep 13, 2021
b5d0447
Merge branch 'master' of github.com:wix/react-native-ui-lib into V6_2
Inbal-Tish Sep 13, 2021
6826fd9
Avatar - revert 'imageSource' deletion (#1557)
Inbal-Tish Sep 13, 2021
0be442b
Avatar - restore warning on 'imageSource' deprecated prop
Inbal-Tish Sep 14, 2021
c9a18a5
V6 migration guide (#1558)
ethanshar Sep 14, 2021
8bcac56
Merge branch 'master' into V6_2
ethanshar Sep 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions demo/src/demoApp.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import AsyncStorage from '@react-native-community/async-storage';
import {Navigation} from 'react-native-navigation';
import * as Animatable from 'react-native-animatable';
import {AnimatableManager, Constants, Colors, Typography} from 'react-native-ui-lib'; // eslint-disable-line
import {Constants, Colors, Typography} from 'react-native-ui-lib'; // eslint-disable-line
import {registerScreens} from './screens';


Expand All @@ -27,21 +26,6 @@ import {registerScreens} from './screens';
// }
// });

// AnimatableManager.loadAnimationPresets({
// preset1: {
// animation: 'fadeIn',
// easing: 'ease-out-quint',
// duration: 1000,
// useNativeDriver: true,
// },
// preset2: {
// animation: 'fadeInLeft',
// easing: 'ease-out-expo',
// duration: 500,
// useNativeDriver: true,
// },
// });

// const customAnimationsDefinitions = {
// customAnimation1: {
// from: {opacity: 0, translateY: 20},
Expand All @@ -52,10 +36,6 @@ import {registerScreens} from './screens';
// to: {opacity: 1, translateY: 0},
// },
// };
// IMPORTANT! Make uilib's animations available globally for the app's use (option to pass adittional animation definitions)
Animatable.initializeRegistryWithDefinitions(
AnimatableManager.loadAnimationDefinitions(/** customAnimationsDefinitions */)
);

function getDefaultNavigationStyle() {
return {
Expand Down
9 changes: 0 additions & 9 deletions demo/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ module.exports = {
get TabControllerScreen() {
return require('./screens/componentScreens/TabControllerScreen').default;
},
get TabBarScreen() {
return require('./screens/componentScreens/TabBarScreen').default;
},
get TextScreen() {
return require('./screens/componentScreens/TextScreen').default;
},
Expand Down Expand Up @@ -212,12 +209,6 @@ module.exports = {
get CardScannerScreen() {
return require('./screens/componentScreens/CardScannerScreen').default;
},
get CardAnimationsScreen() {
return require('./screens/animationScreens/CardAnimationsScreen').default;
},
get ListAnimationsScreen() {
return require('./screens/animationScreens/ListAnimationsScreen').default;
},
get ProgressBarScreen() {
return require('./screens/componentScreens/ProgressBarScreen').default;
},
Expand Down
2 changes: 1 addition & 1 deletion demo/src/screens/DemoScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class DemoScreen extends Component {
if (PropTypes.bool === prop) {
return (
<View row spread key={propId} paddingV-10>
<Text test70 dark60>
<Text test70 grey60>
{propId}
</Text>
<Switch
Expand Down
8 changes: 4 additions & 4 deletions demo/src/screens/MainScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ class MainScreen extends Component {
activeBackgroundColor={Colors.primary}
activeOpacity={1}
>
<Text style={[item.deprecate && styles.entryTextDeprecated]} dark10 text50>
<Text style={[item.deprecate && styles.entryTextDeprecated]} grey10 text50>
{item.title}
</Text>
<Image source={chevronIcon} style={{tintColor: Colors.dark10}} supportRTL/>
<Image source={chevronIcon} style={{tintColor: Colors.grey10}} supportRTL/>
</TouchableOpacity>
);
} else {
Expand Down Expand Up @@ -284,7 +284,7 @@ class MainScreen extends Component {
)}
{showNoResults && (
<View padding-20>
<Text dark40 text50>
<Text grey40 text50>
Sorry, nothing was found. Try Button or something..
</Text>
</View>
Expand All @@ -304,7 +304,7 @@ const styles = StyleSheet.create({
},
searchField: {
padding: 12,
backgroundColor: Colors.dark80,
backgroundColor: Colors.grey80,
borderRadius: 8
}
});
Expand Down
3 changes: 0 additions & 3 deletions demo/src/screens/MenuStructure.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export const navigationData = {
{title: 'Modal', tags: 'modal topbar screen', screen: 'unicorn.screens.ModalScreen'},
{title: 'StateScreen', tags: 'empty state screen', screen: 'unicorn.screens.EmptyStateScreen'},
{title: 'TabController', tags: 'tabbar controller native', screen: 'unicorn.components.TabControllerScreen'},
{title: 'TabBar', tags: 'tab bar', screen: 'unicorn.components.TabBarScreen'},
{
title: 'withScrollEnabler',
tags: 'scroll enabled withScrollEnabler',
Expand Down Expand Up @@ -144,8 +143,6 @@ export const navigationData = {
{title: 'Animated Image', tags: 'animated image', screen: 'unicorn.components.AnimatedImageScreen'},
{title: 'Haptic feedback', tags: 'haptic feedback', screen: 'unicorn.components.HapticScreen'},
{title: 'ProgressiveImage', tags: 'progressive image cover overlay', screen: 'unicorn.components.ProgressiveImageScreen'},
{title: 'List Animations', tags: 'animated card', screen: 'unicorn.animations.ListAnimationsScreen'},
{title: 'Card Animations', tags: 'animated card', screen: 'unicorn.animations.CardAnimationsScreen'},
{title: 'Card Scanner', tags: 'card scanner process', screen: 'unicorn.animations.CardScannerScreen'},
{title: 'Pan Dismissible', tags: 'pan swipe drag dismiss', screen: 'unicorn.components.PanDismissibleScreen'},
{title: 'Pan Listener', tags: 'pan swipe drag listener', screen: 'unicorn.components.PanListenerScreen'},
Expand Down
2 changes: 1 addition & 1 deletion demo/src/screens/PlaygroundScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {View, Text, Card, TextField, Button} from 'react-native-ui-lib'; //eslin
export default class PlaygroundScreen extends Component {
render() {
return (
<View bg-dark80 flex padding-20>
<View bg-grey80 flex padding-20>
<View marginT-20>
<TextField placeholder="Placeholder" />
</View>
Expand Down
12 changes: 6 additions & 6 deletions demo/src/screens/SettingsScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ class SettingsScreen extends Component {
))}
</Picker>

<View style={{borderWidth: 1, borderColor: Colors.dark70, marginTop: 40}}>
<View style={{borderWidth: 1, borderColor: Colors.grey70, marginTop: 40}}>
<View style={[{padding: 5, borderBottomWidth: 1}, styles.block]}>
<Text text80 dark20>Current layout direction</Text>
<Text text80 grey20>Current layout direction</Text>
</View>
<View center margin-5 padding-10>
<Text text70>{isRTL ? 'RIGHT to LEFT' : 'LEFT to RIGHT'}</Text>
Expand All @@ -96,14 +96,14 @@ class SettingsScreen extends Component {
value={isRTL}
onValueChange={this.onDirectionChange}
/>
<Text text80 dark20>Force RTL</Text>
<Text text80 grey20>Force RTL</Text>
</View>
</View>

{extraSettingsUI?.()}
</View>

<Text text30 dark10>Settings</Text>
<Text text30 grey10>Settings</Text>
<Toast visible={showRefreshMessage} position="bottom" message="Refresh the app!"/>
</View>
);
Expand All @@ -112,8 +112,8 @@ class SettingsScreen extends Component {

const styles = StyleSheet.create({
block: {
borderColor: Colors.dark70,
backgroundColor: Colors.dark80
borderColor: Colors.grey70,
backgroundColor: Colors.grey80
}
});

Expand Down
117 changes: 0 additions & 117 deletions demo/src/screens/animationScreens/CardAnimationsScreen.js

This file was deleted.

Loading