Skip to content

Releases: baronha/ting

Ting@1.2.2

23 Jul 07:56
Compare
Choose a tag to compare

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

30 Jun 09:53
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.2.0...1.2.1

Ting@1.2.0

02 Apr 16:18
198a73c
Compare
Choose a tag to compare

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

13 Jul 17:32
Compare
Choose a tag to compare

Ting@1 1 0

console.log("Add spinner preset")

Ting@1.0.5

13 Jul 16:06
Compare
Choose a tag to compare

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

09 Jul 12:54
Compare
Choose a tag to compare

ting_release

console.log("Hello Github")