Skip to content

Releases: NitrogenZLab/ting

Ting@1.2.3

Choose a tag to compare

@baronha baronha released this 10 Nov 17:41

What's Changed

  • feat(example): upgrade react-native to 0.74.2 by @4cc3ssX in #29
  • feat: example react native version upgrade to 0.76.1 + iOS build issue by @4cc3ssX in #38

Full Changelog: 1.2.2...1.2.3

Ting@1.2.2

Choose a tag to compare

@baronha baronha released this 23 Jul 07:56

What's Changed

  • fix: ios build issue when using use_frameworks! static by @jeongshin in #32

New Contributors

Full Changelog: 1.2.1...1.2.2

Ting 1.2.1

Choose a tag to compare

@baronha baronha released this 30 Jun 09:53

What's Changed

New Contributors

Full Changelog: 1.2.0...1.2.1

Ting@1.2.0

Choose a tag to compare

@baronha baronha released this 02 Apr 16:18
198a73c

What's Changed

  • Support for parsing custom colors in various formats including hexadecimal, RGBA, and named colors.
  • The parseColor function now can handle these formats, allowing for flexible color customization on both Android and iOS.
  • Custom progress bar color support for Android with progressColor prop.
  • Improve shouldDismissByDrag instead of clicking on the Android.

New Contributors

Thanks for the great effort of Ryam @4cc3ssX

ting120

Full Changelog: 1.1.0...1.2.0

Add Spinner - Ting@1.1.0

Choose a tag to compare

@baronha baronha released this 13 Jul 17:32

Ting@1 1 0

console.log("Add spinner preset")

Ting@1.0.5

Choose a tag to compare

@baronha baronha released this 13 Jul 16:06

Ting@1 0 5

Initialization

Instead of using too many options like this:

const options = {
  // ...
  messageColor: '#D60A2E',
  titleColor: '#D60A2E',
  icon: {
    uri: require('./vietnam.png'), // or remote
    size: 24,
  },
  shouldDismissByTap: true,
  position: 'bottom',
  // ... bla bla bla
};

toast(options);

You want to initialize the default options for all subsequent use of toast or alert. You can use the setup function that is called when the application is initialized. Do the following:

import { setup } from '@baronha/ting';

const initOption = {
  toast: {
    messageColor: '#D60A2E',
    titleColor: '#D60A2E',
    backgroundColor: '#ffffff',
    // ... more and more
  },
  alert: {
    // ... alert's option
  },
};

setup(initOption);

// Use it next time. You can completely override it on subsequent calls
toast({
  title: 'Ting!',
  message: 'Easy toast for React Native',
});

alert({
  title: "What's up bruhhh!",
  message: 'Easy Alert for React Native',
});

TintColor

const icon = {
  uri: require('./vietnam.png'), // or remote
  size: 24,
  tintColor: '#D60A2E', // NEW FEATURE
};

1.0.0

Choose a tag to compare

@baronha baronha released this 09 Jul 12:54

ting_release

console.log("Hello Github")