24ark / react-native-step-indicator

A simple react-native implementation of step indicator widget compatible with the ViewPager and ListView.
Apache License 2.0
1.44k stars 312 forks source link

Import syntax for typescript. #45

Open chitswe opened 6 years ago

chitswe commented 6 years ago

What is the correct way to import StepIndicator? import StepIndicator from "react-native-step-indicator"; and import * as StepIndicator from "react-native-step-indicator"; not work. It says Property render is missing. Changing this line to import * as React from "react" work.

rj9676564 commented 6 years ago

this my code import StepIndicator, {StepIndicatorStyles} from 'react-native-step-indicator'