MCPcopy Index your code
hub / github.com/callstack/react-native-pager-view / render

Method render

src/PagerView.tsx:147–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 };
146
147 render() {
148 return (
149 <PagerViewNativeComponent
150 {...this.props}
151 ref={(ref) => {
152 this.pagerView = ref;
153 }}
154 style={[
155 this.props.style,
156 Platform.OS === 'ios' && this.props.pageMargin
157 ? {
158 marginHorizontal: -this.props.pageMargin / 2,
159 }
160 : null,
161 ]}
162 layoutDirection={this.deducedLayoutDirection}
163 onPageScroll={this._onPageScroll}
164 onPageScrollStateChanged={this._onPageScrollStateChanged}
165 onPageSelected={this._onPageSelected}
166 onMoveShouldSetResponderCapture={this._onMoveShouldSetResponderCapture}
167 children={childrenWithOverriddenStyle(
168 this.props.children,
169 this.props.pageMargin
170 )}
171 />
172 );
173 }
174}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected