Skip to content

Releases: baronha/ting

[email protected]

10 Nov 17:41
Compare
Choose a tag to compare

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

[email protected]

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

[email protected]

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 - [email protected]

13 Jul 17:32
Compare
Choose a tag to compare

Ting@1 1 0

console.log("Add spinner preset")

[email protected]

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")