I found workaround command to create a library,
npx create-react-native-library@latest qrscanlib --reactNativeVersion 0.74.2