refactor into useActivityIndicator and spinner properties
backward compatibility with refactoring
Merge pull request #2 from yoiang/back_support

backward compatibility with refactoring