@toneflix/flipbook-native
v0.3.8
Published
An expressive flipbook for creating personalised and interactive reading and photo viewing experiences, for React Native and Expo.
Downloads
2,438
Maintainers
Readme
@toneflix/flipbook-native
An expressive flipbook for creating personalised and interactive reading and photo viewing experiences, for React Native and Expo.
npx expo install @toneflix/flipbook-native react-native-svg expo-screen-orientationexpo-screen-orientation is optional: with it, the screen locks to landscape while the book is open; without it, phones held upright are asked to turn sideways.
import { View } from 'react-native'
import { Flipbook } from '@toneflix/flipbook-native'
export function Book({ book }) {
return (
<View style={{ flex: 1 }}>
<Flipbook book={book} fonts={{ serif: 'Fraunces_400Regular', serifItalic: 'Fraunces_400Regular_Italic' }} />
</View>
)
}See the documentation.
